Home > Web Front-end > HTML Tutorial > Rookie question_html/css_WEB-ITnose

Rookie question_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:12
Original
1028 people have browsed it

winform html

I wrote a form program using winform and a simple web page using html. The URL is http://localhost:7254/HTMLPage11.htm
Set in the form A button. Clicking the button will open the webpage you wrote. You can open the webpage on your own computer, but you cannot open the webpage you wrote on someone else's computer. If you change the connection to http://www.baidu.com Just open it and ask God for advice on how to solve it.

Reply to discussion (solution)

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template