Port Forwarding using your Windows Server or Laptop
Sometimes we just need to forward a port from one host, to another host. A few years back I built a java NIO-based port forwarder to learn about java NIO socket communication. The java source codes since has been lost and there is a different need for port forwarding, the first is that a server having failure connecting to services in another server, and I think that the server's IP might be translated to another IP while it were connecting to another network. So the port forwarding need to be able to log the IPs of the incoming connection. The second, is to temporarily circumvent strange network problems that prevent the first server connecting to another server. Step 1 - Decide which incoming port to use First we need to decide what port we are going to use to accept connections in the first host. Check first that the port is not already occupied in the host (try opening http://127.0.0.1:xx in your favorite browser where xx is the chosen port) Step 2 - Open windows fire