I have an application that exposes Web Services on the loopback address so they are only available to the localhost. Is it possible to redirect traffic from there to the external interface so I can call the Web Services from other PCs on the network? I'm pretty sure this can be done by playing with the IP tables in Linux but I'm using windows 7.

Thanks in advance!

  • Does it not take a start-up parameter to specify the listening IP/port? – Matt Mar 31 '15 at 6:33
  • It only exposes the web services to loopback by design... :) – lachs Mar 31 '15 at 6:36

Maybe this will work?

netsh interface portproxy add v4tov4 listenport=5003 connectaddress= connectport=5003 listenaddress= protocol=tcp

Otherwise try one of the options listed as answers to the question found here:
Easy TCP proxy on Windows?

  • Just to be sure before I try, can I remove this by just replacing the 'add' in the netsh command with 'remove'? – lachs Mar 31 '15 at 7:23
  • you'd use 'netsh delete' not remove – Matt Mar 31 '15 at 7:31
  • That didn't work, still unable to connect from the external interface although I can still connect from the loopback address. Thanks for trying anyway mate. – lachs Mar 31 '15 at 23:05
  • @lachs You'll also need to unblock the firewall to allow access to 5003 if your firewall is enabled which it is by default! – Matt Mar 31 '15 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.