I have created a web service application in Visual Studio. The Web service can be accessed by the following URL.
http://localhost:1863/WebServiceTest.asmx (when in Debug mode) http://192.168.1.252/WebServiceApp/WebServiceTest.asmx (after publish through IIS)
The program still works if I replace "192.168.1.252" to the static IP address of the network. However, the same URL will not work if not using the same network - a *"Connection refused" error is returned.
How can I fix or debug this?
What I have done:
netstat -a show port 0.0.0.0:80
is Listening . You should set :port in IIS setting of your website:
IIS* → right click on your website* → click Edit Binding → on the form, select row → edit → change the port and then save.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.