How to move one local port to another?

I have an HTTP proxy server running on port 127.0.0.1:8888. I need to redirect the HTTP client binding to 127.0.0.1:8080 to forward to 127.0.0.1:8888.

I tried using the netsh.exe utility on Windows. I have a DHCP client service running in my windows 7.

netsh interface portproxy add v4tov4 listenport=8080 listenaddress=127.0.0.1 connectport=8888 connectaddress=127.0.0.1 

The command was successfully completed. However, the proxy server never receives any request. Unable to forward local ports? Or my understanding is wrong.

+6
source share
1 answer

Set listenaddress and connectaddress to the actual address on the local network (e.g. 192.168.1.15, depending on your router and dhcp). Not localhost

+1
source

Source: https://habr.com/ru/post/955698/


All Articles