Web services for accessing local area networks by external network

Source: Internet
Author: User
Tags web services

Recent company projects need to directly outside the company's internal servers, the server's computer can be Sisu network (such as Baidu), the network segment is a 172-beginning LAN. To this end, access to information, finally realized.
First of all, this article is aimed at the situation is: The computer is located in the LAN and can Sisu network, how to Internet cafes or mobile phones or other places can access to the LAN computer publishing site, to use peanut shell.
1. First publish a Web site or service on IIS in accordance with the LAN IP: I have published a website here, the port is 9000 (note: If the SQL database is mapped to the extranet, this step is not required because the default port for SQL is 1433 and the local area network is accessible)

2. Download Peanut shell registered account (need 6 yuan) Peanut Shell official website;
3. Log in peanut shell

3. When you log in, you will be prompted to add a map:
App name to write, intranet host, fill in the Local intranet IP address, Port mapping (TCP) fills in Port 9000 for the IIS publishing site only (if the SQL database is mapped to an extranet, fill in 1433 here). The

configuration may take 10 minutes to take effect because the peanut shell maps the domain name for you.
4. In the peanut Shell main interface, the mouse on the list on the line, a diagnostic icon will appear, as follows (here I have added two mappings, one is a website, one is SQL):

Click this icon to see the details of the map:

You can see the information on the picture:
* Domain IP address point to: 103.44.145.245
Peanut Shell client ip:119.129.81.69
The peanut shell mapping has been detected by your domain name.
Testing mapping d158936r62.imwork.net:59285-> successful
LAN Server 192.168.1.101:9000-> success *
Where 119.129.81.69 is an external IP, you can ping directly:

103.44.145.245 is the domain name, that is, enter this 103.44.145.245 in the browser to find the external IP
5. Extranet access to our published website:
There are two methods:
1. Using the domain name IP (when registering the peanut shell, there is a free domain name): Port For example: 103.44.145.245:59285 this equivalent to access to their own computer's 9000 Port
2. Domain name: port e.g. http:// d158936r62.imwork.net:59285

Above for my own information, pro-Test available ...

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.