views:

47

answers:

1

I'm trying to connect to a custom http service written by another developer.

The service responds fine on a local IP address and port number. Such as: http://10.1.1.1:1234 but it does NOT respond to http://localhost:1234 or http://127.0.0.1:1234

The service is a simple single function application written in VC++ that takes an http post string and returns another string.

I'm trying to all it from C# using HttpWebRequest.GetResponse, but I can reproduce the same problem manually from a web browser...

Test environment is Windows 2008 Server.

Bottom line I'm looking for some troubleshooting tips to help the other developer fix his code.

+1  A: 

The HTTP server socket is bound to the network ip of the server. It needs to be bound to all the interfaces on the host machine. (this will include the loopback interface, localhostor 127.0.0.1)

Midhat