I am working on windows machine and using netsh portproxy to forward traffic from port 4000 to application running on port 4002. It works fine when trying to access my application from localhost or LAN, like this
127.0.0.1:4000
192.168.1.21:4000
However when I connect outside of my LAN port forwarding doesn't seem to work at application doesn't see requests target at my.public.ip.address:4000
. What is the reason for this behavour? Note that when I remove port proxy and run my application at port 4000, requests targeted at my.public.ip.address:4000
reach my app without a problem. Here's my current netsh portproxy configuration:
netsh interface portproxy show all
Listen on ipv4: Connect to ipv4:
Address Port Address Port
--------------- ---------- --------------- ----------
0.0.0.0 4000 127.0.0.1 4002