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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With