开发者

Access to asp.net web service

开发者 https://www.devze.com 2023-03-09 21:23 出处:网络
I wrote a little WS on asp.net, I can open it printing something like http://46.146.170.225开发者_如何学Python/RouteGen/Service.asmx

I wrote a little WS on asp.net, I can open it printing something like

http://46.146.170.225开发者_如何学Python/RouteGen/Service.asmx

in address bar. It's all right, WS works.

But if I print the same address in a browser on the other computer, the page isn't available. How to get access to my web server from other PC? (I need from Android device, but I think it's no difference)


If you started the Web-Service from within Visual Studio then without changing the starup-settings of your project - it's not possible, because VS only starts a local debug web-server that doesn't allow calls from other hosts than localhost.

To allow external IPs to access your web-server, you have to set up the IIS and run your web-service inside it. A firewall could block incoming requests to the IIS but I ran such a service last winter and didn't have to change firewall-settings.


  1. Verify that the website, in IIS, is bound to a public-facing IP address. Right click on your website in IIS, and go to the bindings setting. Then, check the host field. It should have an IP address or domain name that is available publicly.

  2. Verify that your firewall has Port 80 open for incoming traffic

0

精彩评论

暂无评论...
验证码 换一张
取 消