Recently I've been asked how can you connect to a LAN server from Internet.
This is quite useful if you have a LAN event, and shout-caster who wants to stream but is not in the venue.
Let's start first with an explanation of what we're trying to do in this tutorial:
In order for a Client from external local network (Internet) to connect on Server's local network (LAN)
we need to establish a VPN tunnel between these two networks:
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/0207976ace6a41cf93cb57065a522be8.png[/SPOILER]
Now in days I've first done this, Hamachi was your best option, but after playing around with it today
I've ran into a lot of problems that were not an issue before;
First if you're running a 64-bit Windows, it will refuse to install required network driver because it's not digitally signed. You will also need to register to their LogMeIn lounge where you will receive a two week trial.
After you have logged in, there is a good chance a lot of problems will go down while trying to set up a functional tunnel.
TL;DR - Hamachi is outdated and not worth anymore for what we're trying to do.
Now, after looking for alternatives, I have found one program that has this feature and most of you are already using. We will need Evolve, specifically 1st version, which you can download here.
For everything written below, it is assumed that both Server and Client have confirmed Evolve accounts, are friends and online on Evolve.
1. Right click on Client's profile and click "Create Party"
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/1a35636c6c2c4676a516274e29d4cc86.png[/SPOILER]
2. A popup window will appear asking you to install Evolve's network adapter, click "Install"
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/b39abfb16a324ac9a8ed6930c0dcea58.png[/SPOILER]
3. You should be brought to party lobby, where your profile rank will be Leader.
Click on wheel icon which stands for Settings -> Party Mode -> Private Game [SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/cdc613fd826c41b9bb23d05fc6c5f428.png
We don't want random people joing the party.[/SPOILER]
4. Run CoD2, go to "Start New Server", set "Dedicated" LAN, "Punkbuster" No and click "Start"
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/f2a4f9d16ae54d73a1a4a1244f4b1b47.png
You can change other options on your convenience.[/SPOILER]
5. Newly created console is a place from which you control your server, but you can also set rcon with
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/6d31ec43eb3c4e75a6a9f63b405c4df4.png[/SPOILER]
1. You should receive a party invite from Server's profile, accept it
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/a0c7eb4510d94af2a07f5da3eb5e1983.png
2. A popup window asking you to install Evolve's network adapter will appear, click "Install"
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/9114072ae3b14ba082adc11fc311a10d.png[/SPOILER]
3. You should be brought to party lobby, where your profile rank will be Member.
Under Leader there should be Server's Evolve account, and next to it his VPN IP: [SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/a788e71391b34930b13ec38dbf461d0f.png[/SPOILER]
4. This is the IP you will be connecting to. Start your CoD2, open console and write: "connect <your_server_ip>:28960"
Note that port can differ based on Server's cfg
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/8087fa20a0504d0bb242144c4cc853d2.png
***Important note for Windows 10 users***
In case that after installing the adapter and entering the party,
you appear as offline and a warning in the bottom pops out saying "Evolve could not initialize virtual private network connection. Make sure it's installed and enabled."
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/fccb0ee4c3ac42ba90aaca9317020458.png[/SPOILER]
1. Exit Evolve totally.
2. Right click on Start -> Device Manager
3. Go to "Network adapters" and find "Evolve Virtual Ethernet Adapter".
It should have a warning triangle which tells us something is wrong
[SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/499ae3f215b64021b6919ffffec924a3.png[/SPOILER]
4. Right click on it -> Properties
5. Go to "Advanced" tab and set "MAC Address" to Value 0: [SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/c7a67755dbb4402aa18b78ed26abbd10.png[/SPOILER]
6. Click OK, notice that warning triangle should go away after this
7. Start Evolve again and join the party, you should now be connected and see VPN IP of online party members: [SPOILER=SPOILER: Click to view]http://image.prntscr.com/image/379c3a1d70744f6f9f9b7b985926374f.png[/SPOILER]