PDA

View Full Version : Fix for hosting problems (overridden IP, patched EXE)


Pac-Man
7 Aug 2012, 09:59
Hi there,

so I noticed WWP overriding your IP every time you login to WormNET, no matter what you've set in the registry. I disabled this behavior with a patched executable.
Due to legal reasons, I simply can't post it here, I bet (at least I want an OK from T17 first).
If someone can tell me a good script patching system, I will post a patch script here. For those who know how to and want to do it manually:
000334C5: 75 --> 74 (JNZ --> JE)

How to patch it yourself
1. Open a hex editor. If you don't have one, download HxD: http://mh-nexus.de/en/downloads.php?product=HxD
2. Make a backup copy of wwp.exe in your wwp game folder, then open the wwp.exe:
http://pacman.highfsb.com/team17/wwppatch1.png
3. Press Ctrl+G and enter 334C5 in the offset box, click on OK.
4. A "75" number should be highlighted. If you do not have a 75 here, check the offset you entered. If the offset is correct, abort here and tell me which WWP version you are using (update installed? which language? which publisher?)
5. If you have a 75 there, change it to a 74 and save your file.
http://pacman.highfsb.com/team17/wwppatch2.png

How to host with the patched executable
It's pretty simple.
1. Start the game with the patched exe, not the old one.
2. Find out your real IP by either connecting to WormNET and writing down the IP told you there...
http://pacman.highfsb.com/team17/wwp1.png
3. Enter it in the network configuration screen.
http://pacman.highfsb.com/team17/wwp2.png
4. Connect again and host working games!

If players still can't connect, the problem is caused by a misconfigured system on your side. I won't give support on that. Just make sure:
- Your firewall does not block WWP at all (the Windows Firewall automatically asks to allow it). If in doubt, temporarily disable third-party firewalls for tests.
- Your router is forwarding Port 17011 TCP. Have a look at your routers instructions, for most cases enter 192.168.2.1 in your browser URL bar and have a look at the configurations you will get there.

Phantom
7 Aug 2012, 10:12
It's nice to see that WWP is still getting some support.

Pac-Man
7 Aug 2012, 10:20
I added instructions on how to manually patch the executable, maybe someone can try it.

StepS
7 Aug 2012, 10:57
First, there's a tool for this (ViiDifPatcher), and second, not all the hosting problems are related to bad IP address. It's mostly ISP-leveled NATs which block users to host stuff on their computers. And routers

Also there's a registry key for this, working fine for me...
https://dl.dropbox.com/u/48532592/wwp/AddressOverride.reg

Pac-Man
7 Aug 2012, 11:07
Yeah thx steps, however, that registry key doesnt work for me :/
EDIT: It even forces me the WRONG ip address. I have my local IP forced then, no matter what I've set up in the configuration screen. Completely weird. It also does not work in combination with the patch above. You have to set that to 0 to get it to work.