Skip to content

share121/port-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

port-mapping 端口映射

Lastest commit (branch) Test Latest version License

简单的映射端口程序

使用

修改 mapping.txt 文件,格式如下:

# t+u 表示同时使用 tcp 和 udp 协议
# 把本地端口 40000-49999 映射到服务器 100.123.151.117 的端口 0000-9999 上
t+u 40000-49999 100.123.151.117:0000-9999

# 使用 tcp 协议,把本地端口 5666 映射到 localhost 的端口 80 上
tcp 5666 :80

# 使用 udp 协议,把本地端口 5666 映射到 localhost 的端口 80 上
udp 5666 :80

⚠️ 注意: 如果重复配置同一端口,则后覆盖前

⚠️ 注意: 工作目录的 mapping.txt 加载优先级 > 程序所在目录的 mapping.txt 加载优先级

然后运行 port-mapping 即可

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published