VS local development environment supports external network access

A, Vs

 code show as below:

                    <binding protocol="http" bindingInformation=":42201:localhost" />
                    <binding protocol="http" bindingInformation="192.168.1.53:42201:*" />

 Close vs, re-run as administrator vs, open the project, and start debugging, or will use the default form of access "http:: // localhost port number / ** / **", and to modify the localhost ip, which can ip + port in the form of a visit.

Turn off the firewall, copy the URL and paste it into the phone that is accessible

 

Guess you like

Origin www.cnblogs.com/fger/p/12590750.html