NinoEmma
NinoEmma

Reputation: 127

invoking a web service from another machine

this is my question: i need to invoke a web service hosted on HostA from a web browser on HostB. i create a web service on HostA, i started it with F5 and this is the local url:

http://localhost:55432/Service1.svc

On HostB, i used the same url changing localhost with the HostA IP (pingable). But it doesn't work. The Page return a "Unable To Connect to IP-Address".

i don't think it's a code problem, but it look like a connection/security problem. Thanks for helps.

Upvotes: 3

Views: 1376

Answers (1)

Joshua
Joshua

Reputation: 8212

By default, the Visual Studio web servers (Cassini for older implementations, IIS express for newer implementations) do not even bind to your network adapter's IP address, instead only binding to localhost. So, by default, they do not accept remote connections.

If you're using Cassini, you can refer to how to access cassini server remotely in LAN for demo? for more information.

IIS express is handled differently, as evidenced in IIS Express enable external request.

Upvotes: 2

Related Questions