I’m trying to develop an iPhone application to consume a Web Service written in C#. I want to be able to access the web page through the localhost on my PC (http://localhost:54053/Service1.asmx) so I don’t have to push the Web Service live just yet. Any recommendations on how to do this?
Thank you very much.
You will have to use IIS on your development machine. The built-in Cassini server binds directly to 127.0.0.1 and is only accessible locally. To access it from a remote device, you need to set up a host in IIS. Cassini has a limitation to 127.0.0.1 and is not accessible remotely.
Once you have a website set up to answer to an IP address that is not 127.0.0.1, and it’s configured to serve your new web service, then you can use the IP address to get to it.