NAT_Traversal_Service
NAT traversal server, client and libraries.
.
Usage
Compile from source code:
$ git clone https://github.com/MaoJianwei/NAT_Traversal_Service.git
$ cd NAT_Traversal_Service
$ mvn clean package
Or, download pre-build binary jar file:
https://github.com/MaoJianwei/NAT_Traversal_Service/releases
Run nat-traversal server/client:
-
copy application.properties from nat-traversal-server/src/main/resources/ or nat-traversal-client/src/main/resources/ to the same directory as nat-traversal-client-1.0.jar / nat-traversal-server-1.0.jar
-
modify application.properties on your demand.
-
cd <directory-of-binary-jar>, make sure you can see application.properties and nat-traversal-server/client-1.0.jar by ls command.
-
run "java -jar nat-traversal-client-1.0.jar / nat-traversal-server-1.0.jar"
- nat-traversal-server use my WeChat_Notify_Module to enable pushing notifications/messages via WeChat/微信. If you don't need this feature, please remove all mao.wechat.notify.* configs from application.properties.
- If you want to quickly run them and have a look at web dashboard, please just leave server.port and mao.nat.server.addr in the application.properties
Web Dashboard
NAT-Traversal Server: http://<client-ip>:<server.port-in-properties-files>/nat
NAT-Traversal Client: http://<server-ip>:<server.port-in-properties-files>/nat