Skip to content

udp port expose

XuXiHai edited this page Oct 28, 2023 · 1 revision

usage

connect default server

npm install -g gwk

client.json

{
    "serverHost":"127.0.0.1",
    "serverPort":4443,
    "tunnels":{
        "udp01":{
            "protocol": "udp",
            "localIp":"127.0.0.1",
            "localPort": 53,
            "remotePort": 6666
        }
    }
}

output

λ ~/github/gank/ main gwk -c client.json               
Starting gwk client with config: client.json

tunnel list:
udp01          ok: udp://127.0.0.1:6666 <=> udp://127.0.0.1:53 
Clone this wiki locally