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 ago1375

reply all(14)I'll reply

  • 黄舟

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

    WeChat has released a debugging tool. Use it

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 17:03:09

    For Windows, use the peanut shell intranet version to get it directly.
    If Linux is used as a development machine (this is my current plan), rent a VPS (such as Alibaba Cloud student machine, a cheap machine with 128MB memory in the United States), and use ssh Map vps port 80 to local

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-16 17:03:09

    If it’s a campus network, just give up. . I wanted to do this before, but the school wouldn't do port mapping for you, so I rented a cloud server. . It’s cheap anyway

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 17:03:09

    If you are using Windows, you can use peanut shells. Domain names at level 4, 5, 6, 7 and 8 can access the local machine, but it is not that stable, but it should still be more convenient for development and testing than Alibaba Cloud. . . .

    reply
    0
  • Cancelreply