Peanut Shell ing to Internet

Source: Internet
Author: User
Tags website server shell account

If we want to accept and process messages sent from the platform, we must have our own website server.

Therefore, we will prepare our website server environment.

Many people like to use Baidu application engine Bae because it is a free application and does not require maintenance. This is indeed very convenient, but what I want to say here is that when we develop programs, I still don't recommend that you do that. Why? This is not conducive to debugging. The normal step should be to develop and debug locally and put it on the real server without any problems (such as Sina's SAE and Baidu BAE ). Another topic is: What languages do we use to develop our website? In fact, you can use all the languages used to develop websites, such as Java, PHP, ASP. NET, Ruby, Python, and note. js. The Platform interacts with our website through interface calls, as long as our website can respond to the request message, it does not matter in any language.

So what is the focus? The key point is the communication between the platform and our local server.

Let's look at the figure below:

 

The Platform calls our website through the website URL and Token configured here. Therefore, we first need to apply for a URL for our local server, allow the Internet to access our local website through this URL. In other words, we need to publish the website on our local computer to the public network so that everyone can access it.

 

1. ing of the Internet site to the Internet domain name

It seems very troublesome to publish a website running on your local computer to the public network so that everyone can access it. Because you must first have a domain name, and then Configure port ing on the local router, and pay special attention to firewall settings. However, now I recommend a very good tool: the new dynamic domain name tool for peanut shells. With this tool, you do not need to set the port ing of the vro or firewall settings, or even do not need to apply for a domain name. Because of all this, the new peanut shells have already helped you solve the problem. Well, I 'd like to talk less about it to avoid the suspicion of advertising. Then we officially started to teach you how to publish websites running on your computer to the Internet so that everyone can access them.

1. First, you must have a website that can run locally. If you do not have a new web project, run it. For example, I created a Java Web project in eclipse with only one JSP page and started to run it in Tomcat.

2. Enter localhost: 8089/demo in the browser to access the homepage. (Your URL may be different from mine)

3. Can open, then from here: https://console.oray.com/passport/register.html registered a peanut shell account. Here: http://hsk.oray.com/download/download the new peanut shell client terminal, and use the account number of the registration number after installation.

4. After logging on, we will immediately see the free level 2 domain name allocated by the peanut shell for us. My is: mongoingman123.vicp. CC

5. Click the icon in the Red Circle to diagnose the domain name. If "successful" is displayed, the domain name ing is successful.

6. Go back to the domain name list page, right-click-new peanut shell Management

7. Click Add ing on the pop-up page. You only need to enter the IP address and port number of the Internet site on the Custom Application tab (check "Enable Internet http80 port"). For example, mine:

8. Click "OK" and the Level 2 domain name assigned to us through the peanut shell will be able to access our website anywhere on the Internet. In this way, we put the web site on our local computer on the Internet.

2. Fill in the platform interface configuration information

Next, enter our level 2 domain name in the interface URL (note that the Application name is included)

The token can be entered as a random string (mainly used for verification, which will be described later). For example: wx123

Click Submit. Here, the Environment configuration of our local server is complete ~

Peanut Shell ing to Internet

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.