Getting Started

Suppose you have set up a web page on a personal computer in your home, and the access address is http://127.0.0.1. Now you need to access this web page from outside your home.

To achieve this goal is very simple. All you need to do is two things:

  1. Create an internal network penetration rule in the console
  2. Run trannap locally on your device

Next, I will introduce separately the requirements for a complete console and local operation. You just need to follow the sequence step by step, and you will be able to achieve the initial goal.

Console operation

If you have already created the device in the console before, there is no need to recreate it. You should directly create the internal network penetration rule for your device. Generally speaking, the devices in the console should correspond to the devices in your real world, that is, you should not create multiple devices for the same real device in the console. They should be in a one-to-one relationship.

Enter the console

You can find the entry to the console at the top right of the website, just like Console

It will require you to have an account first. But don’t worry, the account is free. Usually, all you need is a mailbox that can receive emails.

Create the device

Now you can create a device in ‘Devices -> Add device’ for your personal computer to use. You can fill in “Home Server” for the name, and then click the “Create” button.

Copy the device token

Then you will see it. Click “Copy Token”, which will copy the token to your clipboard. Please keep it safely as you will need to use it later. Device

Create TCP Penetrations

Now, you can create a penetration for your web page in the “TCP Penetration -> Add penetration”. You can fill in “My Page” as the name, fill in 80 as the port, select a node that is closer to you or appears to be faster, choose the device named “Home Server” that you just created, and then click the “Create” button.

Just like this: Penetration The newly created “penetration” feature is initially disabled. You need to wait until it is fully created before enabling it. Switch Then you will see the URL address for accessing your home webpage from outside, such as lv1.trannap.com:****. However, you can’t use it now because there’s still one final step to complete.

Local operation

This is very simple, but there are still some prerequisites.

Requirements:

  • trannap binary that you downloaded
  • You need to be able to use the command line of the operating system you are using, as some commands will require your permission next.

Run TranNAP

First, go to the directory where you have downloaded trannap, and then run the following command

Replace YOUR_DEVICE_TOKEN with the actual values you obtained earlier. This can be viewed after you create the device in the console.

He will automatically connect to the node you have selected and wait for the connection to be successful.

Now you can access your webpage by using the address similar to lv1.trannap.com:**** that you saw earlier.