LAN gaming over internet [VPN setup guide using n2n]

July 28, 2009

This guide makes use of the programs available from an open-source project called “ntop n2n”.

Official site:-
http://www.ntop.org/n2n

n2n allows a person to create a VPN connection between two or more computers. For a computer to connect to another computer, an “edge” executable is required to be run on each computer. Any number of computers can be connected to each other, but for all the connections to take place, one computer needs to run the “supernode” executable. Now for the connections to take place, the computers running the “edge” first tries to connect to the computer running the “supernode”, after which once the exchange of information between all the computers running the “edge” is completed through the “supernode”, the “supernode” is no longer needed, and the connections between the computers running the “edge” is done directly from computer to computer without any involvement from the “supernode”.

So the smallest n2n network is created using only two computers, where the first computer runs both the “supernode” and the “edge”. And the second computer runs only the “edge”.

This allows a person to play any PC game online, by either hosting or joining a LAN game over this VPN network, but the connection between computers is done over the internet, instead of on a LAN.

First of all, download all the files using the links at the bottom of the guide.The files are :-
pictures.rar
n2n v1.3.3.rar
n2n Gui v0.34.rar

——————————————————————————–
I have included both the n2n edge and the n2n supernode in the compressed file “n2n v1.3.3.rar”.

These files are taken from the official Win32 installer of “n2n v1.3.3” which was released on 7-March-2009.
——————————————————————————–

There are two free n2n supernode’s that i know of. You can use any one of them, that is if you do not want to run a supernode of your own.
——————————————————-
ip address : 88.86.108.50
port : 82
[hosted by http://www.vpnhosting.cz ]
——————————————————-
ip address : 217.172.180.69
port : 82
[hosted by EPC Gaming]

==================================================

Steps to run the supernode:-

1. Extract the compressed file “n2n v1.3.3.rar”
2. Go to Command Prompt
3. Go the directory where “supernode.exe” is located
4. type the following :-
supernode.exe -v -l xxxxx
[where “xxxxx” is a port number]

For example,
supernode.exe -v -l 6666
[where “6666” is the port number]

==================================================

The below is the procedure inorder to connect to a n2n supernode.

———————————————————————————————–
Step 1:
download OpenVPN installer,
http://openvpn.net/release/openvpn-2.1.1-install.exe

Once the download is complete, start up the setup file, but only install the TAP adapter.
Also uncheck all the checkboxes except for the TAP adapter.
[refer to “OpenVPN setup.JPG”]

———————————————————————————————–
Step 2:

In this step, you can either do,
Step 2(a), GUI version of the “edge”
(OR)
Step 2(b), console version of the “edge”

————————————————-
Step 2(a):

GUI version:-

Extract the compressed file “n2n Gui v0.34.rar”, install the program.

But during the installation of “n2n Gui”, uncheck the checkbox called “Launch tap installer” at the end of the installation, since the OpenVPN installer would have installed the TAP adapter for you.
[refer to “n2n Gui setup.JPG”]

Enter the “supernode IP” and “supernode port” in the “n2n Gui” window. You can use any one of the supernode IP’s that I have mentioned above.

As for the “Assigned IP”, you can enter any valid IPv4 address that you want.
As for the “Group name”, you can enter any name that you want.
As for the “Password”, you can enter any password that you want.

Refer to “n2n Gui window.JPG” for an example.

————————————————-
Step 2(b):

console version:-

Extract the compressed file “n2n v1.3.3.rar”.

I will use an example to better explain the switches involved for the edge executable,

For example, enter the following in a Command Prompt,
edge.exe -c MyGameServer -a 15.16.17.1 -k myPassword -l 88.86.108.50:82

The below is an explanation comparing the meaning of each switch,
-c is the community/group name for your network
-a is the “Assigned IP” for the computer running an “edge”
-k is the password of your network
-l is the “supernode IP” and “supernode port”, separated by a colon

The below is an explanation comparing the meaning of each switch to that of “n2n Gui”:-
-c is the same as “Group name” field of “n2n Gui”
-a is the same as “Assigned IP” field of “n2n Gui”
-k is the same as “Password” field of “n2n Gui”
-l is the same as “supernode IP” and “supernode port” field of “n2n Gui”

————————————————-

NOTE :

If you are running a n2n supernode of your own,
you can use the external IP address of the PC where the supernode is running, along with the port number that the supernode is running on.

Now, if you want to play a LAN game over the internet with any of your friends,
all your friends need to use the same “supernode IP” and “supernode port” that you are using.
He also needs to use the same “Group name” and “Password” that you are using.
But as for the “Assigned IP”, if you are using “15.16.17.1”, your friend can use “15.16.17.2” or “15.16.17.3” or any other IP address that is not already being used.

Also everyone must have a unique “Assigned IP”, it is important that every one must have the first three sections of the “Assigned IP” address the same. The first three sections of this IP address is known as the network address. Only the last section of the “Assigned IP” address can be different. That is values ranging from 1 to 254.

———————————————————————————————–
Step 3:

Once your own supernode is set up, or instead if you decide not to run a supernode, you can use one of the two free supernodes, and once the edge executable is running on the PC that you plan to play a LAN game online, try to ping the other computer’s “Assigned IP” that is running the edge executable to see if the connection between the two computers is working. If you got a result for the ping, then everything seems to be working perfectly.

So just start up any multiplayer game that you want, and then either create or host a new LAN game.
The other PC’s running the edge executable will then be able to see the newly created LAN game, and will then be able to join the game. It’s that simple.

==================================================

Quick Start guide:-

If you have two PC’s in a LAN,

go to Command Prompt on Computer No.1, and type,
edge.exe -c MyGameServer -a 15.16.17.1 -k myPassword -l 88.86.108.50:82

then go to Command Prompt on Computer No.2, and type,
edge.exe -c MyGameServer -a 15.16.17.2 -k myPassword -l 88.86.108.50:82

“88.86.108.50:82” is the free supernode from “vpnhosting.cz”

Then change “MyGameServer” to any other name that you want, since another person might be trying out this guide, the community name would then be the same and cause a conflict. Besides that, enter the rest of it exactly as I have mentioned above and the VPN connection between the two computers will then be set up. You can then try to ping each computer.

For example,
from Computer No.1, type in a new Command Prompt window,
ping 15.16.17.2

and from Computer No.2, type in a new Command Prompt window,
ping 15.16.17.1

The ping between each computer should work. Try making a shared folder on Computer No.1 and see if Computer No.2 can access that folder. If the folder is accessible from Computer No.2, your VPN is configured properly.

==================================================

Also i would like to see people post the following:-
1. Average ping between each PC you are connecting to
2. Whether the computer you are connecting to is in the same country or not
3. Are all the computers you are connecting to using the same ISP
4. The internet connection speed of each computer [download/upload]

==================================================

Attachments:-

[n2n Gui v0.34.rar]
http://ysharing.com/en/file/3351/n2n-Gui-v0-34-rar.html

[n2n v1.3.3.rar]
http://ysharing.com/en/file/3353/n2n-v1-3-3-rar.html

[pictures.rar]
http://ysharing.com/en/file/3354/pictures-rar.html

Advertisements