vs2019 netocore project local ip address access procedures need to modify configuration files

After IISPress start the project, open the tray IISPress can see the current project

 

 According to figure out applicationhost.config identify the file path, the general solution .vs under the program directory for your project \ Solutions folder \ folder config files.

Add a new find bindings as shown in at <binding protocol = "http" bindingInformation = "*: 57429: 192.168.1.106" />

Which 192.168.1.106 Ip address instead of your own, your own port changed to 57429

 

Read a lot of other people are the same port, start IISPress error after the test. It is noteworthy that not to localhost port number duplication. Save the file, so that you can re-Qidong IISPress.

Later renamed as above may occur when you access via IP address 400 error, if there is, on the use of the following methods:
(1) Open the CMD command window as an administrator
(2) Enter the following command:

netsh http add urlacl url=http://192.168.1.1:8080/ user=everyone  

 Similarly, the IP address and port to your own. Please confirm if the error is to run as administrator CMD. Restart IISExpress, this time should be able to access the IP address of the

Guess you like

Origin www.cnblogs.com/cqinwn/p/11458411.html