How to map your local server to the Internet ? We can use ngrok This tool , Download address :http://pan.baidu.com/s/1slnMwPn

The specific operation steps are as follows :

First step 、 Download client
We suggest that when downloading, it's better to put the files in a place that is easy to find , If I were , I'll change the file name , And it's in English .

The second step 、 Unzip to the appropriate folder
It is recommended to unzip it directly to d Packing list , So you can directly cd Enter the client folder , For example, our client , You need cd 64bits_client .

The third step 、 Open the command line
If you want to use the system's own command line , Click Start , Input cmd; Or turn it on ngrok.exe Directory of files , Press shift Key point right mouse button , choice “ Open command window here ”.

Step four 、 Carry out orders
perform ngrok -config=ngrok.cfg -subdomain xxx 80 (xxx It's your custom domain prefix ,80 Is the server port , Fill in the port of your local server here ).

Step five 、 Unique domain name
I still want to remind you , Make sure your domain prefix is unique , There are many ways here , Such as your qq Or your cell phone number , Even your wechat , This can have a protective effect on your project .

Step six 、 Turn on your local server
For example, some friends often forget to open their own windows apache perhaps nginx wait , It will make you waste a lot of time , It's not worth it . You might as well visit first 127.0.0.1:80 Make sure the access is normal , Start using ngrok.

Use ngrok More articles about mapping intranet to extranet

  1. openvpn Implement intranet Mapping to Extranet

    openvpn Implement intranet Mapping to Extranet Scenario introduction : Introduction to the machine Local one Ubuntu The server A , In the Intranet , No extranet IP One external network Ubuntu The server B , Internet address 139.199.4.205 The goal is : ...

  2. About session Failure problem ( Intranet IP And the Internet IP)

    Reference resources : Test environment test Alipay payment , With ip Access to , After the Alipay payment is successful, the callback address is configured in the form of domain name. . After the payment is successful, visit the success page and enter the login page Same website , Login through domain name and through IP Sign in , Produced by session yes ...

  3. 3 Construction of local agent environment for wechat development -- Realize the integration of Intranet ip Mapping to the Internet

    The development of WeChat official account , To build a website , And it is possible to modify the content of the website at any time for debugging , This requires that the temporary external network can return to the local development environment to build the project for testing , That is, the intranet is mapped to the public network , But many developers don't have their own domain names and servers , Let's build a Ben first ...

  4. Configure multi tier NAT And port mapping to achieve external network access to the intranet

    Configure multi tier NAT And port mapping to achieve external network access to the intranet Background and principle By configuring NAT Can be achieved in the Intranet can not directly access the external network through the host NAT Proxy access intranet , The configuration method will not be repeated here ( There is an introduction to ). This paper is based on a two-tier analysis NAT The agent does the simulation , Through end ...

  5. java -Mac Build a local server and map to the external network

    Studying recently Html, Little progress, I want to write a romantic static page for my girlfriend , So here's the problem , How to make my web page available to girlfriends who know nothing about the Internet , So I came up with the idea of using my own computer as a server . Baidu will sort it out as follows : First of all ...

  6. Mac Build a local server and map to the external network

    Studying recently Html, Little progress, I want to write a romantic static page for my girlfriend , So here's the problem , How to make my web page available to girlfriends who know nothing about the Internet , So I came up with the idea of using my own computer as a server . Baidu will sort it out as follows : First of all ...

  7. Title:eNSP Mapping to the Internet

    Title:eNSP Mapping to the Internet One . System version OS edition : 10.0.17763 For the moment Build 17763 eNSP V1.3.00.100 Oracle VM VirtualBox 5.2.2 ...

  8. Mapping a local project to an external network (tomcat web project )

    1. First, download as shown in the figure above nat123 Software , The software can be free intranet mapping . 2. According to the picture above , Fill in as required : Network port : own web The port corresponds to the service , Intranet address : The local address can be set to default localhost, Intranet ip, Other defaults are OK ...

  9. How to solve Nginx The problem of access address port missing after port mapping to external network

    1. Problem specification A cell phone h5 Page items , Use nginx( monitor 80 port ) Visit , What is the address of intranet access 192.168.12.125/h5, Visit normal ,nginx The configuration in : # WeChat H5 Page access locati ...

Random recommendation

  1. Android --selector Easy to use

    selector --- Selectors stay App It is often seen in the use of selector The figure of Such as : A button looks white or some other color , It could be a picture Click to display another color or another picture Use here shape In combination with ...

  2. URAL 1152. False Mirrors(DP)

    Topic link After understanding the meaning of the title , It's not hard .. State compression + violence . #include <cstring> #include <cstdio> #include <string> ...

  3. Use Java Service Wrapper start-up java Background process service

    Java Service Wrapper (http://wrapper.tanukisoftware.com/doc/english/product-overview.html) It's very convenient to use it in every flat ...

  4. ES mlockall effect ——preventing that memory from being paged to the swap area

    elasticsearch There's another important parameter bootstrap.mlockall, The purpose of this parameter is when you can't shut down the system swap When , It is recommended to set this parameter to true. Prevent when memory is not enough ,elastics ...

  5. (《 Number theory and its application 1.3》NEFU 116 liangyi-jian ( Minimum common multiple &amp;&amp; greatest common divisor ))

    #include <iostream> using namespace std; long long gcd(long long a, long long b){ if(b == 0){ ...

  6. [ Roof placement ] android Custom fillet ImageView And saw tooth treatment

    See a lot of people in the development process to use rounded images , The solution is : 1. Redraw a picture 2. Configuration by layout 3. By rewriting View To achieve among 1,2 I won't talk about it here , Focus on the realization of method 3 . Achieve one : By capturing a circle on the canvas ...

  7. ASP.NET MVC The controller of learning is extensible

    original text :ASP.NET MVC The controller of learning is extensible One . Preface I've talked about the controller in an essay before , And today's essay is an extension of the past . Two . Text 1. Custom action method I believe you will encounter the same name of action method in the development process ...

  8. sql Look at the performance of the statement

    SET STATISTICS TIME: see cpu Time    SET STATISTICS IO: Focus on scan count( Count )------ Number of tables read by query :logical read( Logical reads ) frequency

  9. MySQL Index Merge Optimization

    Index Merge It's used to pass through some range scans Get the retrieved data rows and merge them into a whole . The merger can be done through unions,intersections, perhaps unions-intersection Application in the bottom layer ...

  10. iOS Class method 、 Wild pointer and null pointer

    One . Class method : Independent of objects , More efficient execution ; Problems that can be solved by class method , Try to use class methods ; Instance variables cannot be accessed directly in class methods ( Member variables ) Two . What are wild and null pointers ? When did it come into being ? How to avoid ? As long as an object is released , ...