Custom http service responds fine to local IP address but NOT to localhost or 127.0.0.1

Posted by Scrappydog on Stack Overflow See other posts from Stack Overflow or by Scrappydog
Published on 2010-03-27T21:28:15Z Indexed on 2010/03/27 21:33 UTC
Read the original article Hit count: 286

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about http

Related posts about post