Home  >  Q&A  >  body text

How to use apache on a laptop as a server for WeChat development

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)

某草草某草草2734 days ago1377

reply all(14)I'll reply

  • 滿天的星座

    滿天的星座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.

    reply
    0
  • 迷茫

    迷茫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)

    reply
    0
  • ringa_lee

    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

    reply
    0
  • 为情所困

    为情所困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

    reply
    0
  • 黄舟

    黄舟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.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味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.

    reply
    0
  • 黄舟

    黄舟2017-05-16 17:03:09

    Nat, you know. On the campus network, ask the network administrator to map it for you

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:03:09

    Now there is WeChat developer tool, debugging is not bad

    reply
    0
  • PHP中文网

    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.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 17:03:09

    Wanwang can apply for a virtual machine for free

    reply
    0
  • Cancelreply