R – Windows Mobile Web Services – works while tethered, not while using cell data network

asp.netnetweb serviceswindows-mobile

I've written an ASP.NET web service that I would like a .NET 3.x application running under Windows Mobile 6.1 to communicate with.

When the phone is connected to a desktop via USB/ActiveSync it can communicate with the web service flawlessly.

When I place the phone on the cell network (unplug the USB cable) it is not able to communicate with the web service. I get a System.Net.WebException -> Unable to connect to remote server. System.Net.Sockets.SocketException -> A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

When I attempt to browse to the ASMX page via the mobile browser (Opera), while on the cell network, it connects and renders the description page perfectly.

Any ideas?

Best Answer

I solved this before seeing GenericTypeTea's comment - but good job GTT, right on the money.

Apparently when you use the GUI in VS to add a web reference it converts the domain address into an IP address. How ridiculous.

Anyhow.. solved.

Related Topic