tag:blogger.com,1999:blog-34620758.post4841931192172522778..comments2022-10-27T03:23:18.302-07:00Comments on Fun Of Math: Starcraft and NATJohn Paulhttp://www.blogger.com/profile/03099984750605700968noreply@blogger.comBlogger42125tag:blogger.com,1999:blog-34620758.post-89054661502559836322012-01-09T13:33:33.994-08:002012-01-09T13:33:33.994-08:00Ok so after doing everything you said Jonathan ( I...Ok so after doing everything you said Jonathan ( I think) ..we are having a issue of now when we both try to log into our battlenet accounts, one of us will get a message saying "The connection to Battlenet has been interrupted"....it also did it once when I was just trying by myself to get online it did it too,,,,I would think something to do with my router settings maybe...please emial me personally as listed above we really need you r help!!!StefanieDhttps://www.blogger.com/profile/09504794351734756633noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-64758530808949487672012-01-09T11:06:59.982-08:002012-01-09T11:06:59.982-08:00So Johnathan can you please email me at stefaniedd...So Johnathan can you please email me at stefanieddudley@gmail.com I did what you said but now when we try to get on one or both it says Battle.nets connnection has been interupted please try again later...and sometimes we get into the lobby then it does that. Please email me when you can as I REALLY want to get both of us online together!!StefanieDhttps://www.blogger.com/profile/09504794351734756633noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-73938616647313938782012-01-08T20:54:57.502-08:002012-01-08T20:54:57.502-08:00Ok so I need help...I have a windows 7 computer an...Ok so I need help...I have a windows 7 computer and a windows XP computer...we want to play online together. We have a wrt310N wireless router and we have also bought a switch and have a 2nd ip address from Shaw. So how can we play together online in the same game?? Can someone send me step by step instructions on how to do this so my husband and I can finally play together online in a game...THANK!!!StefanieDhttps://www.blogger.com/profile/09504794351734756633noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-6623186706130991832011-04-16T06:00:14.499-07:002011-04-16T06:00:14.499-07:00Guys, i have adsl 2+ connection
Modem Zyxel P660HT...Guys, i have adsl 2+ connection<br />Modem Zyxel P660HTW2 EE<br />Firmware 340AZC3D0 (19.03.2010) - late<br /><br />I open all ports (nat -> port forwarding -> default server 192.168.1.33 - this open all ports in my ip), but people cant join me and 2x2 is lagging.<br /><br />Then i google my problem and found it http://yigitgursoy.wordpress.com/<br />90% of this commands dont work, so I use only "-ip nat timeout UDP 6112 10", i decrease 10 to 0, and people join me!<br />I experimented, 0-3 seconds - people can join me, more - cant.<br />But anyway, 2x2 lagging...<br /><br />I dont know what to do...<br /><br />Some information about me: PFPortChecker show, that all ports open, in particular 6112 TCP & UDP.<br />I have ESET NOD32 4.2. Firewall turn off here.<br />My Lan: tcp\ip automatically; DHCP, ip 192.168.1.33, mask 255.255.255.0, gateway 192.168.1.1, DNS 192.168.1.1Nelsonhttps://www.blogger.com/profile/01064694955063991460noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-38206858463170798842011-02-04T10:54:31.650-08:002011-02-04T10:54:31.650-08:00Thats cool for me works the firts way, i didnt pro...Thats cool for me works the firts way, i didnt probe the second way, but ONLY ONE PROBLEM how i can be host.... maybe you can find some way to solve that, it will be great....<br /><br />thx men....ray474https://www.blogger.com/profile/02913746720105203854noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-8642800040452583382010-02-11T00:24:58.722-08:002010-02-11T00:24:58.722-08:00so, what about im using DSL wireless... and every ...so, what about im using DSL wireless... and every time i click on Save Firewall the router will be reset and the WAN IP will change after that .... This will make those rules not suitable anymore according to the changed WAN IP. .... any solution for this?<br />Or does any1 know how to fix WAN IP?Unknownhttps://www.blogger.com/profile/08529285496819775233noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-65990663771913909752010-01-08T08:00:51.196-08:002010-01-08T08:00:51.196-08:00Thanks for replying John.
Yes, i'm forwarding ...Thanks for replying John.<br />Yes, i'm forwarding both TCP and UDP traffic. Are you able to connect to game created by your brother (when both of you behind the same NAT) ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-56192254486033889372010-01-07T20:16:02.801-08:002010-01-07T20:16:02.801-08:00I've never messed with multiple players and Wa...I've never messed with multiple players and Warcraft III though it should work. Are you forwarding both TCP and UDP traffic on ports 6112 and 6113 to your machine and your brother's machine, respectively? Battle.net uses UDP pakets, and some routers may default only to forwarding TCP packets.<br /><br />I'm sorry I cannot offer more than that as a suggestion.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-69891466083082121572010-01-07T08:33:55.495-08:002010-01-07T08:33:55.495-08:00(sorry for my bad english)
Is it works for warcraf...(sorry for my bad english)<br />Is it works for warcraft 3 when playing on non-official pvpgn server?<br /><br />I have d-link 2540U configureg in router mode. When i'm trying to play with my brother (both computer are connected to LAN ports of router) we able to connect to battle.net, write messages in chat and even create games, but not able to connect to each other. I'm trying to connect to game created by my brother, interface of a game freezes for one second and then appears message somthing like "cant connect, possibly you enterd wrong game name or administrator stops it".<br />Here http://us.blizzard.com/support/article.xml?locale=en_US&articleId=21109&rhtml=true i've read that<br />"- NAT users will need to map any "in"s (hosting games only) to the IP of the computer hosting the game.<br /><br />- Warcraft III is the only Blizzard Title that currently supports multiple players hosting games behind NAT."<br /><br />After allowing incomig connections on port 6112 for me and port 6113 for my brother (6113 is his game port) the same message appears, but after approximately 5 seconds.<br />I've tried to change subnet mask in my network connection properties, but it doesn't help.<br />Am i doing something wrong?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-79580841288334981232009-11-12T11:43:34.687-08:002009-11-12T11:43:34.687-08:00Guys,
I want to make sure that you guys know wher...Guys,<br /><br />I want to make sure that you guys know where to add that Registry Key:<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Battle.net\Configuration]<br /><br />or <br /><br />[HKEY_CURRENT_USER\SOFTWARE\Battle.net\Configuration]<br /><br />This is where you add a DWORD value of 6113 (DECIMAL)<br /><br />JonUnknownhttps://www.blogger.com/profile/09216760068430872355noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-21711079828925021022009-11-09T17:31:46.138-08:002009-11-09T17:31:46.138-08:00I should say that this has been tested with Window...I should say that this has been tested with Windows XP only.<br /><br />If you are using Vista or 7, then you might need to pay attention to which registry key you are modifying, as I believe Game Data Port should not be changed in HKLM, but in HKCU.... But I dont have any computers with any of those OS yet and I havent tested it out.<br /><br />Cheers,<br /><br />JonUnknownhttps://www.blogger.com/profile/09216760068430872355noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-16477266743716011402009-11-09T17:21:33.089-08:002009-11-09T17:21:33.089-08:00Thanks!! Can't wait to try this. I have tried ...Thanks!! Can't wait to try this. I have tried to solve this problem using iptables a couple of times during the last 6 years, but never succeeded :)werknoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-40394204911828038962009-07-16T21:10:38.873-07:002009-07-16T21:10:38.873-07:00Not sure!! I would have thought so too.. But appar...Not sure!! I would have thought so too.. But apparently something probably prevents it from working... Like I said it does not work if the 2+ computers are on the same subnet, even with the port change and iptables rule... I have not looked into it with wireshark but I can confirm that the Game Data Port registry key works (with cports I was able to clearly see that UDP port 6113 was in use when I added the value. Anyways, we made it work!Unknownhttps://www.blogger.com/profile/09216760068430872355noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-11889571389394183982009-07-16T19:51:55.222-07:002009-07-16T19:51:55.222-07:00Thank you, Jonathan! I wonder why we have to go t...Thank you, Jonathan! I wonder why we have to go through so much trouble if it is possible simply to change the port to 6113 using RegEdit. If the port is different, then I would think a standard NAT gateway could handle the routing of the packet.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-69182434411234956992009-07-16T18:22:55.286-07:002009-07-16T18:22:55.286-07:00OKAY GUYS! GOOD NEWS!!
JULY 16, 2009
After 5 ho...OKAY GUYS! GOOD NEWS!! <br /><br />JULY 16, 2009<br /><br />After 5 hours of trial and error, I finally figured it out!!<br /><br />*** Works perfectly on patch 1.16.1<br /><br />So the IPTABLES rule above works, with a slight modification (see below).<br /><br /><br />Step-by-Step:<br /><br />1. Each computer must have an IP Address with a different Subnet (you can do this by manually changing this in your Network Config):<br /><br />Example: <br />Computer A: IP: 192.168.1.129<br /> Subnet Mask: 255.255.255.128<br /><br />Computer B: IP: 192.168.1.193<br /> Subnet Mask: 255.255.255.192<br /><br />2. You need to change the Port that Starcraft is using on Computer B. <br />To do this, open "regedit" and go to your Starcraft registry key (in HKLM) and add a DWORD value, name it [Game Data Port] (without the brackets) and give it a value of 6113 (DECIMAL make sure you check that radio button).<br /><br />3. Add John Paul's firewall NAT rule on your router (I highly recommend DD-WRT for this, in Administration, Command, Save Firewall):<br /><br />Note: I used a mix of my values and the same values as John so that you can retrieve yourself more easily. The main difference is that the second iptables rule uses port 6113 instead of 6112 as suggested by John.<br /><br />iptables -t nat -I PREROUTING -p udp -d 70.100.200.24 --dport 64001 -j DNAT --to-destination 192.168.1.129:6112 <br />iptables -t nat -I POSTROUTING -p udp -s 192.168.1.129 --sport 6112 -j SNAT --to-source 70.100.200.24:64001 <br /><br /><br />iptables -t nat -I PREROUTING -p udp -d 70.100.200.24 --dport 64002 -j DNAT --to-destination 192.168.1.193:6113 <br />iptables -t nat -I POSTROUTING -p udp -s 192.168.1.193 --sport 6113 -j SNAT --to-source 70.100.200.24:64002<br /><br />4. That's it! You're all set! Only problem is that you guys won't be able to create a game together, BUT IF YOU BOTH JOIN A GAME IT WILL WORK 100% with NO LAG OR CHOPPY! EVEN TRIED 4v4 with no problem whatsoever!!<br /><br />5. You could add more computers this way, as long as they are not on the same subnet mask and port as the other ones you should be fine!<br /><br />Examples of additional computers settings:<br /><br />Computer C: IP Address: 192.168.1.225<br /> Subnet Mask: 255.255.255.224<br />Game Data Port: 6114<br /><br /><br />Computer D: IP Address: 192.168.1.241<br /> Subnet Mask: 255.255.255.240<br />Game Data Port: 6115<br /><br /><br />Then add the two IPTABLES rule above accordingly (change IPAddress and Port).<br /><br /><br />Jonathan G.<br />Quebec, CanadaUnknownhttps://www.blogger.com/profile/09216760068430872355noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-64042268803358950852009-03-10T19:57:00.000-07:002009-03-10T19:57:00.000-07:00I have not looked at this further, and currently I...I have not looked at this further, and currently I do not know when I will have time to look at making things work again since the 1.16 patch. If I find time to work on this, I will post what I discover.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-17538463872267598292009-03-10T19:42:00.000-07:002009-03-10T19:42:00.000-07:00Any progress? I've tried using WireShark to look a...Any progress? I've tried using WireShark to look at where the packets were heading and coming from. It seems, although I could be mistaken as I'm no expert, that the traffic is on all sorts of different ports now, so the routing rules don't work since they are from specific ports. Thanks for your help in advance!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-75461080997956410772009-02-09T07:54:00.000-08:002009-02-09T07:54:00.000-08:00When I have time, I'll take a look. I still prefe...When I have time, I'll take a look. I still prefer Starcraft over all other RTS games, so I hope we can find a way to make it work. Any distinguishing information in the packet envelope can be used to route it to the correct computer behind the NAT, so let's hope Blizzard still allows something to be different in the envelope.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-74581706662004638972009-02-08T21:00:00.000-08:002009-02-08T21:00:00.000-08:00Nope. That didn't do it. I'm still having the same...Nope. That didn't do it. I'm still having the same problem. Thanks for your help anyway. I'll keep digging around.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-88430172369709593402009-02-08T20:18:00.000-08:002009-02-08T20:18:00.000-08:00You might try using using values of 6113 and 6114,...You might try using using values of 6113 and 6114, which are valid Battle.net port numbers (at least in Warcraft III) instead of 63002 and 63003. I cannot remember a good reason to use those port numbers.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-22836460608889946052009-02-08T20:12:00.000-08:002009-02-08T20:12:00.000-08:00It's broken for me too as of 1.16.1We (the two com...It's broken for me too as of 1.16.1<BR/><BR/>We (the two computers on the lan) can see and join eachothers game, but people from battle.net cannot join the game.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-21448179651907160722009-01-27T10:33:00.000-08:002009-01-27T10:33:00.000-08:00I have not gotten around to trying to get the rule...I have not gotten around to trying to get the rules to work with both the game host and one of the other players behind the gateway. I do encourage anyone to get wireshark and look at the packets that are sent for host communications.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-53904708695364148112009-01-27T09:10:00.000-08:002009-01-27T09:10:00.000-08:00hey, ever got hosting to work?hey, ever got hosting to work?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34620758.post-75543744710214381152009-01-24T16:16:00.000-08:002009-01-24T16:16:00.000-08:00I hope it is not broken. I have not played in a w...I hope it is not broken. I have not played in a while, and I will have to put the iptables rules on my new router.John Paulhttps://www.blogger.com/profile/03099984750605700968noreply@blogger.comtag:blogger.com,1999:blog-34620758.post-50006751750886541222009-01-24T15:00:00.000-08:002009-01-24T15:00:00.000-08:00Did 1.16.1 break this fix? I had it working before...Did 1.16.1 break this fix? I had it working before, but ever since I upgraded SC, it doesn't seem to work anymore.Unknownhttps://www.blogger.com/profile/17097395741442739330noreply@blogger.com