Warcraft II Forum

Warcraft II => Server.War2.ru => Topic started by: fois on June 30, 2019, 08:31:00 PM

Title: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: fois on June 30, 2019, 08:31:00 PM
I've been working on a patch that allows you to host games without port forwarding (nor change any settings).

To be able to use it you'll have to download the wsock32.dll file below and place it into your game folder while the game is not running.

Both, the host and the player that likes to join the game will need to have the file in their game folder, it doesn't work if only one of them got the file.

Note: The patch is also included in War2Combat 46 in case you don't know how to copy a file into your game folder:
http://en.war2.ru/downloads/ (http://en.war2.ru/downloads/)


Even if you've already forwarded your port and you can host games, you can still download the file (It will allow you to join games hosted by those that didn't forward the port).


It should work for around 80% of the players. It does very highly likely not work for those that often cause "conflicts" (Symmetric NAT), but you can give it a try anyways if you like.

It only works on the main .ru server, the backup server doesn't support it yet.


** Edit by mousetopher **

NOTE: after you install the file you still might see the message from "note" saying your ports aren't forwarded -- that's ok! as long as you have "HP" by your username on the status page (http://server.war2.ru/status) then you're good to go :newthumbsup:

(https://cdn.discordapp.com/attachments/452933261266518016/613055289498927105/VPN_message.png)
(https://i.imgur.com/o2Vo9DD.png)

** end edit by mousetopher **
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on June 30, 2019, 09:29:03 PM
amazing, great work !!!  :thumbsup: :thumbsup: :thumbsup:
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: Tolean on June 30, 2019, 11:23:32 PM
Thx sir!!
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on August 09, 2019, 08:16:30 AM
i can't believe everyone was talking about holepunching as a hosting fix for years and then fois actually did it & nobody has anything to say about it xD anyone been using it yet? i just got it installed but I don't think enough other people have it yet
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: Lambchops on August 09, 2019, 09:15:36 AM
i can't believe everyone was talking about holepunching as a hosting fix for years and then fois actually did it & nobody has anything to say about it xD anyone been using it yet? i just got it installed but I don't think enough other people have it yet

WTF. This is clearly a hack that give some people an advantage, because if they can be the host then they can pick the teams. This is a real advantage, nobody can claim it isn't.

I demand that it be automatically updated from the official version. Putting the file in the WC2 folder it too technical. Maybe some noobs who don't understand pro strategies think this is ok, but IMO it is a hack and I would never use it.

fois is a hacker.



( this is sarcasm, just in case it doesn't translate ;) )
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on August 09, 2019, 10:16:44 AM
i can't believe everyone was talking about holepunching as a hosting fix for years and then fois actually did it & nobody has anything to say about it xD anyone been using it yet? i just got it installed but I don't think enough other people have it yet

WTF. This is clearly a hack that give some people an advantage, because if they can be the host then they can pick the teams. This is a real advantage, nobody can claim it isn't.

I demand that it be automatically updated from the official version. Putting the file in the WC2 folder it too technical. Maybe some noobs who don't understand pro strategies think this is ok, but IMO it is a hack and I would never use it.

fois is a hacker.



( this is sarcasm, just in case it doesn't translate ;) )

omg, lamby so salty
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on August 09, 2019, 10:25:49 AM
Salty emote added for lambchops ! :salty: :salty: :salty:
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: Lambchops on August 09, 2019, 10:35:40 AM
Now you're just making fun of me.

Cool  :thumbsup:
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on August 09, 2019, 10:42:42 AM
wtf you started it haha
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on August 09, 2019, 10:45:25 AM
added a shortlink for this thread http://en.war2.ru/holepunch (http://en.war2.ru/holepunch) spread the word people!
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: Certified MENSA Genius Brain (smart) on August 09, 2019, 02:20:15 PM
#wow #whoa
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: tk[as] on August 09, 2019, 08:34:55 PM
this is in a bad section of the forums... thats why nobody is talking about it. i didnt even know this thread existed until mouse said "en.war2.ru/holepunch" 10 seconds ago.
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: mousEtopher on August 10, 2019, 10:32:05 AM
i keep forgetting this was posted in the Mods section, that's probably why no one has really acknowledged it yet. so in case this is still news to anybody:

THE HOSTING FIX IS HERE PEOPLE !!!!!!!!!!!!!!

Please discuss.
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: Tolean on August 10, 2019, 12:06:57 PM
I added it
 Anything else I should do?
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: iL on August 10, 2019, 12:18:07 PM
I added it
 Anything else I should do?

join war2, check status: http://server.war2.ru/status/ (http://server.war2.ru/status/) and make sure you have green HP for your account in the list of users. Then everything is fine for you!
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: Tolean on August 10, 2019, 02:25:08 PM
Thx I will see when I will get on
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: gorbel on September 08, 2019, 04:39:28 PM
Should I have a real IP to host? Both of my computers have green HP but I still cant host

P. S.
Its crazy but someone connected to me and i dont have real IP!!! So i can host! But if i try to connect from my 2nd computer i see "latency too high". Its so strange.

Someone knows why it happens? How i can join to my game from 2nd computer?
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: (PLS DELETE MY ACC) on September 08, 2019, 05:19:12 PM
Should I have a real IP to host? Both of my computers have green HP but I still cant host

P. S.
Its crazy but someone connected to me and i dont have real IP!!! So i can host! But if i try to connect from my 2nd computer i see "latency too high". Its so strange.

Someone knows why it happens? How i can join to my game from 2nd computer?
WHEN U INSTALL GAME CHOOSE A PORT THAT ISNT 6112 (DEFAULT ONE)
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: gorbel on September 08, 2019, 06:27:25 PM
Should I have a real IP to host? Both of my computers have green HP but I still cant host

P. S.
Its crazy but someone connected to me and i dont have real IP!!! So i can host! But if i try to connect from my 2nd computer i see "latency too high". Its so strange.

Someone knows why it happens? How i can join to my game from 2nd computer?
WHEN U INSTALL GAME CHOOSE A PORT THAT ISNT 6112 (DEFAULT ONE)

reinstalled on both computers second variant (random port). The same problem
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: fois on September 09, 2019, 04:27:59 AM
Should I have a real IP to host? Both of my computers have green HP but I still cant host

P. S.
Its crazy but someone connected to me and i dont have real IP!!! So i can host! But if i try to connect from my 2nd computer i see "latency too high". Its so strange.

Someone knows why it happens? How i can join to my game from 2nd computer?

It's possible to play with 2 PC's at the same time as long as each one got a unique port, but you probably can't play together in the same game room though (Some routers support it, some don't). If you want to play together in the same game room then one of you will need to install a VPN.
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: fois on September 09, 2019, 10:17:57 AM
I just added a IPX -> UDP LAN patch, this way you can have both, a fully functional LAN mode and you will be able to host games without port forwarding in online games.

Not too much testing has been done so far, it works fine for me though. If anyone wants to test, file is attached below.

Note: To play a LAN game, go to Multi Player Game -> Enhanced -> IPX Network.
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: woofy on May 12, 2021, 04:24:39 AM
@fois MVP.
Title: Re: NAT Traversal Patch - Hosting games without the need for port forwarding
Post by: tk[as] on May 12, 2021, 08:00:53 AM
Fois is definitely a beast