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)
Soso ngrok, although the main domain name is blocked, there are many self-set servers in China, and the results are good.
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 up
apache
都没用的你需要买一个服务器,推荐
阿里云
(If you are still a student, it only costs 9.9/month)Map 8080 to the public network and you can debug it
Detailed mapping methods and tools http://natapp.cn
1 Peanut shell
2 WeChat debugging plug-in for qq browser
They all map the local port to port 80 of the external network
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.
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.
Nat, you know. On the campus network, ask the network administrator to map it for you
Now there is WeChat developer tool, debugging is not bad
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.
Wanwang can apply for a virtual machine for free