apache - Who can teach me step by step how to connect to the server of a virtual machine on one of my computers from the Internet?
phpcn_u1582
phpcn_u1582 2017-05-16 16:58:48
0
3
663

I have a computer at home. There is a windows virtual machine in the computer. I have installed a set of wamp. It is only for my own use. I have made some API excuses. How can I connect it outside?
I only know how to debug it. All are http://localhost/★★★★★★
but I don’t know how to use other computers to connect, how can I do it?

Actually, I have asked this question, but I don’t understand what others answered. I would like to get a detailed answer. The following are other people’s answers:

如果要在外网访问的话,那么你就需要在你的路由器或者交换机那里设置一下端口转发,将80端口转发到你的这台主机上面来。

Is this router or switch 192.168.1.1? How to configure it specifically?
Who can teach me step by step...
I will try it myself and I will get it slowly. Please give me a step-by-step answer. .Thank you..

phpcn_u1582
phpcn_u1582

reply all(3)
给我你的怀抱

I have played something similar before. The IP setting is fixed, but it only works within the same IP range. It does not work on external networks. I later tried to put the static page on the hosting website and apply for a free domain name on their website. , so that the external network can be accessed, but I was just messing around. The website seemed to have php or the like instead of a static page, and could also be equipped with a database or something. The Java I used could not configure services, so I just put the page later, which seemed to be called Hosting, if you just want to play and practice, I think you can give it a try

PHPzhong

You can get a peanut shell client

Peter_Zhu

When you are connected to the router, you will think that this is your internal network IP. You can configure mapping in the router. Baidu has many tutorials. You can also download a Peanut Shell internal network domain name mapping. This will cost a few yuan (6 yuan or 8 yuan, I don’t remember, you will be given two subdomain names). Also, why do you need to let the external network access your local machine? What about web projects? What's the point? Slow and stuck. If you really want to play, spend some money to get a cloud server, develop it locally, package the code and send it to the server for running.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template