Jump to content

IPv6 is a good multiplayer alternative for occasional play when blocked by CG-NAT


Recommended Posts

Posted

Hi everyone,

I just wanted to share this way of playing with friends when your Internet provider locks you behind a CG-NAT. I resorted to this for occasional playing, because I did not want to pay for a dedicated server. As a reminder, a CG-NAT prevents you from doing port forwarding on your router, effectively disabling the possibility for other players to join your game.

But if you are lucky enough to live in a country where IPv6 is streamlined, and you and all your friends have a public IPv6 address, this should work.

Pros:

  • Relatively simple to set up
  • Free
  • No registration or third-party software required

Cons:

  • In its simplest form, the setup must be done again for each new playing session
  • Requires working IPv6
  • The server runs on your computer, so is available only when you (the host) are playing (or when you launched Vintage Story's dedicated server on your machine)

Steps:

  • Get your computer's IPv6 address (just type "my ip" on your favorite search engine)
  • Open your router administration (most often found on 192.168.1.1, at least in my country) then set up a new port forwarding rule (for IPv6):
    • Protocol: TCP
    • External port: 42420
    • Internal port: 42420
    • External IP address: all
    • Internal IP address: your computer's IP address
  • Start Vintage Story
  • Start your single-player game
  • Press ESC then "Open to LAN"
  • Use a tool such as this one to check that friends can join your game (put your IPv6 address and 42420)
  • If the tool reports that the port is open, friends will be able to join. They must enter the IPv6 and port like this in Vintage Story (replace by your IPv6, keeping the brackets): 
    [2a02:8428:80d6:d901:7010:e2df:557e:4e4a]:42420

Unfortunately your computer's IPv6 address changes after reboot / sleep / etc... You will have to redo the port forwarding step on your router each time. If you're a tech savvy you may find a way to use DynDNS or some other way to get a permanent solution, but that's out of the scope of this tutorial (read: I don't know how to do it).

  • 6 months later...
Posted

As a full-time administrator, I still find it funny that IPv6 is considered an “insider tip”. (And clearly superior to IPv4.) In fact, there's also a pretty neat trick here:

 

Quote

Unfortunately your computer's IPv6 address changes after reboot / sleep / etc... You will have to redo the port forwarding step on your router each time. If you're a tech savvy you may find a way to use DynDNS or some other way to get a permanent solution, but that's out of the scope of this tutorial (read: I don't know how to do it).

In fact, your PC has at least 3 IPv6 addresses.

1. An EUI-64: This is generated based on your network card’s MAC address and only changes if your provider assigns you a new network. <- This is good for server hosting.
2. A temporary IPv6 address: This is generated randomly and serves to protect your anonymity on the Internet. (You don’t want to give everyone your MAC address—otherwise, you’d be trackable.) <- You use this to browse the web.

Unfortunately, websites won't help you get a static IPv6 address, since by default it's never used for outbound connections. (Privacy)

To find the static IP address, open the Command Prompt in Windows (cmd) and type ipconfig. There you'll find several IPv6 addresses. The correct one is the one that doesn't say ‘temporary’ or “local.”

 

Quote

Honestly didn't expect the game to support IPv6 like this. Might look into a more permanent solution and edit if I can find one.

Fun fact: IPv6 is 27 years old. Every modern program should fully support IPv6, unless it's using some weird, ancient libraries. But in my opinion, VintageStory has pretty solid programming. (Not like Minecraft Forge, which simply turned off IPv6 in Java. -.-)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.