I'm trying to forward an existing port for an application which can only listen on one port. The problem is the program and the firewall is on the same computer (Windows Server 2008 R2).
For instance, my app listens on port 65000. Users can access it from example.com:65000. But I want to add the possibility for users to access it from example.com:64000. The server would act like a NAT, but on the same machine, changing request packets' destination port from 64000 to 65000 and the response packets' originating port from 64000 to 65000.
As far as I could do, I only succeded in the first phase, with destination port. But the server responds either on wrong address (depending on the params I set, if I kept the source address or rewriting to 127.0.0.1) or wrong originating port. It was with NetworkActif Autapf, but I think I can do it with the Windows Firewall...
Is there any way to do it ? (On Windows Server 2008 R2)
Thanks in advance.