Access the server local web server

Article From:https://segmentfault.com/q/1010000011107508

Question:

At present, I am learning how to write code on the server, although the tutorial website provides graphical Linux, but feel card.Now use the putty input command winscp to modify the file, but there’s a program that runs web pages and needs to be opened in the server’s browser.If you don’t want to use graphical Linux, is there any software that remotely opens the local web on the server side? There is no root authority.

Go directly with a browser. You do a few things:1.Know your server’s IP2.Set up the server firewall, allowing 80 or 8080 (in short, the port of your web service) to pass.3.webNormal service opens4.The IP on your test machine can be mapped to the server IP (for example, under the same gateway, or to the server’s web service port)

Answer 2:

Feel that your problem description is somewhat vague and unclear.

First of all, is your server’s local site hosted on Apache or nginx, listening for local 127.0.0.1 or public network ip?

Generally, the public net is IP

Now that you know the public network IP, after opening Apache or nginx, the direct use of public network IP can be opened on its own browser.

The question now is whether your server has already opened Apache or nginx or other server software to carry the website.