2

I have an application that exposes Web Services on the loopback address 127.0.0.1:5003 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!

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

1 Answer 1

0

Maybe this will work?

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

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

4
  • 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, 2015 at 7:23
  • you'd use 'netsh delete' not remove
    – hookenz
    Mar 31, 2015 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, 2015 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!
    – hookenz
    Mar 31, 2015 at 23:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .