WeChat’s development server needs a url. Obviously localhost:8080 is not legal, but the laptop IP address under wifi is not fixed. How should I set up apache to have a static url?
Thank you for your kind reminder. I went to build an aliyun server. Bi She got the WeChat question and wanted to rent an Alibaba Cloud at first. I was worried that the workload of setting up the server by myself would be too small, so I built apache (actually I didn’t It’s bad. The pattern was so groundbreaking at that time)
滿天的星座2017-05-16 17:03:09
Soso ngrok, although the main domain name is blocked, there are many self-set servers in China, and the results are good.
迷茫2017-05-16 17:03:09
Your local server environment cannot be accessed by WeChat. . . It can only be accessed locally or within the local area network. How do you set it upapache
都没用的
你需要买一个服务器,推荐阿里云
(If you are still a student, it only costs 9.9/month)
ringa_lee2017-05-16 17:03:09
Map 8080 to the public network and you can debug it
Detailed mapping methods and tools http://natapp.cn
为情所困2017-05-16 17:03:09
1 Peanut shell
2 WeChat debugging plug-in for qq browser
They all map the local port to port 80 of the external network
黄舟2017-05-16 17:03:09
1. According to the title, it means a fixed IP in the local area network. You can change the automatic acquisition of the notebook to a fixed IP.
2. I feel that the questioner can apply for Alibaba Cloud 9 yuan or Tencent Cloud 1 yuan.
淡淡烟草味2017-05-16 17:03:09
The QQ browser has a plug-in that simulates the local service as an http proxy. The public account security URL is directly entered into this. This is very convenient for debugging, but only Android can do it.
黄舟2017-05-16 17:03:09
Nat, you know. On the campus network, ask the network administrator to map it for you
PHP中文网2017-05-16 17:03:09
I have realized the original poster’s idea. You can use net123 to map the local address (localhost:8080) to the 80 external network, and then configure it on the public platform to use local tomcat for debugging. But after all, it is free. When configuring the connection for the first time, the URL often times out, making it difficult to configure successfully.