资 源 简 介
Tools for Internet Protocols in Java.
To begin a TCP redirect type de following command:
java -cp nettool4j-x.x.x.jar net.woodstock.nettool4j.socket.TCPRedirectConsole -sp 9999 -dp 3306 -dh localhost
Where:
-cp setting classpath for netttol4j, nettool4j-x.x.x.jar is the nettool4j package and x.x.x the version
-sp is source port
-dp is destination port
-dh is destination host
The sample above create a redirect listering on port 9999 to MySQL port running on localhost.