winform html
I wrote a form program using winform and a simple web page using html. The URL is http://localhost:7254/HTMLPage11.htm Localhost cannot be used. . .
If you set it to localhost, you will access this machine every time. .
How to solve it? I'm a newbie, I hope you can explain it in more detail
This is a problem with your WEB site. In order to be accessible from the external network, you need a fixed IP and domain name mapping port
To make it simple, you put the WEB directory together with the program Package and publish it at once, just access the local HTML file file:///c:/xxxx/xxx.htm
How to access it? Please give me some advice
The first thing is that your page needs to be published, for example through IIS or Apache.
Then the click button of the page should write the URL address of the page instead of LOCALHOST, for example: http://xxx.xxx.xxx/page1.html, etc. The xxx in front can be the IP address
If accessing within the LAN, just replace localhost with the IP address of your own host. If it is accessed from the external network, you must first have your own domain name and network space. After binding, replace http://localhost:7254/HTMLPage11.htm with http://domain name/HTMLPage11.htm and directly connect HTMLPage11.htm. into the space. This is a process of building a website, which is a bit troublesome. You can go to Google to find out first.
localhost is the address of the user’s machine