Having trouble with netplay? READ THIS!

Want to play with a friend over the net? Find out all the info you need on how to configure your PC, network and of course ZSNES. Also the correct place to find people to play with and what software they use.

Moderator: ZSNES Mods

Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Having trouble with netplay? READ THIS!

Post by Clements »

AntoineWG wrote:The purpose of this guide is to help users who are not very savvy with networking, but not computer illiterate, to configure their routers properly to host ZSNES netplay sessions or improve their netplay experience with UDP connections and to reduce the number of threads started for port forwarding issues.

Before reading this guide, you will want to read the NETPLAY.TXT and FAQ.TXT that came with ZSNES and your router's manual, as well as any firewall software you may have installed on your computer.

Because this is a guide written by one person, I probably cannot provide you with specific details about your router's configuration because I probably don't own your router. I'll provide at the appropriate point in this thread to a site with more router-specific details than I could ever provide here.

If you are using Windows Internet Connection sharing, this document won't help you. I may update it in the future with details on ICS. For the time being, either get a real router (I recommend Netgear) or use the computer that's connected directly to the modem, or even move the modem to the computer of your choice. ICS may be fine for web browsing and email and port forwarding is possible, but ICS introduces an inordinate amount of lag that other routers do not and it will not give you a very good netplay experience.

You may be asking yourself "Why can't I just put my computer on my router's DMZ? Isn't that easier than setting up port forwarding rules?" Well, yes, it is easier, but the DMZ (de-militarized zone) has one HUGE security hole--the entire IP port range, all 131,072 TCP and UDP ports. Putting your computer basically forwards every incoming connection request to your computer just as if it were connected directly to the modem with out the firewall, while still allowing other computers on the network to use the internet and network like normal. Can you see the problem here? Your computer is left exposed to the internet just the same way as if it didn't have router in front of it and it's an open invitation to all of the unpleasantness that is the internet. It may be easy, but it's like a cheap whore--you might come away clean, but your computer might catch the clap too.

And now on to the actual guide.

Step 1:
Before beginning, you need several pieces of information about your computer and network setup, namely your computer's private IP address (the address you will be forwarding to), your router's private (the address for configuring it) and public (the address your oponent will connect to) IP addresses and some information about ZSNES' specific needs that need not be mentioned at this point.

First off, you need your computer's private IP address. There are 2 ways to get that out of it, depending on what version of Windows you're running.

Step 1.NT
On Windows 98SE/NT/2k/XP/2k3(/Vista?), open the Start menu, then click Run and type cmd in the box and click OK. This will open a command prompt. In there, type ipconfig and hit Enter. This will produce something resembling the following:

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\Tony>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.1.1.16
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.1.1.1

D:\Documents and Settings\Tony>
The IP address should be pretty self explanatory, as it's your computer's private IP address. What you may not know is that 99% of the time, the Default Gateway is your router's private IP address. Write all 3 of these values down or just leave this window open for quick reference because you'll need them later.

Step 1.9x
On Windows 95/98/Me, open the Start menu and click on Run and type winipcfg in the box. It will open up a new window. It will probably list the details for a PPP or dial-up adaptor first. You need to click the down arrow next to the adaptor name to open the dropdown menu listing all of the network adaptors on your system. In addition to your ethernet adaptor, it will probably also list one or more of the following: PPP adaptor, dial-up adaptor, AOL adaptor, 1394 network adaptor. By process of elimination, your network adaptor is most likely the other one that is not in my list. If there are several others (i.e. if you have ethernet WiFi) you may need to try each one. The one with a Default Gateway and IP address is the right one. Write those values down. The IP address is your computer's private IP address and 99% of the time, the Default Gateway is your router's IP address. Write both of these values down. You’ll need them later.

Step 2:
In addition to your computer’s private IP address and default gateway’s (router’s) IP address, you’ll also need your public IP address. Go to http://www.ipchicken.com and write down the IP address it gives you.

Step 3:
Here comes the hard part, working with your router. Because all routers are different, I can’t possibly cover every possible configuration type, but the basic principle is the same on all routers.

To make any changes to the router’s setup, you’ll have to get into it first. The first thing to try is punching in the Default Gateway address in your web browser. Occasionally, to add some degree of security, or at least frustration, they change the port number of this page, usually to 88 or 8080, or use secure HTTP. Examples would be as follows, assuming your default gateway is 192.168.0.1:

http://192.168.0.1
http://192.168.0.1:88
http://192.168.0.1:8080
https://192.168.0.1
https://192.168.0.1:445

Some routers use a default IP address of 172.16.0.1 instead:

http://172.16.0.1
http://172.16.0.1:88
http://172.16.0.1:8080
https://172.16.0.1
https://172.16.0.1:445

If those don’t produce an administration page, consult your router’s manual and check out http://www.portforward.com . They probably have specific instructions for your router.

Here are the settings you need to fill (where applicable) for ZSNES:

Service/Game Name: ZSNES
Public/External Port: 7845 (see notes below)
Private/Internal Port: 7845 (see notes below)
Private/Internal IP Address: (Insert your computer’s private IP address here)
Protocol: Both TCP and UDP (see notes below)

And the setting’s you’ll need in a separate forwarding rule for Zbattle.net:
Service/Game Name: Zbattle
Public/External Port: 4000
Private/Internal Port: 4000
Protocol: UDP only

NOTES:
Some routers allow you to enter a port range for forwarding multiple ports in one entry. In this instance, fill in 7845 for the starting and ending port.

If your router doesn’t allow you to select both TCP and UDP at the same time, you’ll have to create two separate entries with the same settings, one for TCP and one for UDP. You can get by with just TCP, but UDP does not lag as much as TCP.

Step 4:
If you have a software firewall, all of this will be for naught if you don’t configure that properly too. You’ll either need to diable it (you probably don’t need it with a hardware firewall anyways) or set it up to allow incoming connections on ports 7845 and 4000. Because there are so many software firewalls out there (ZoneAlarm, Norton, McAfee, Windows, etc.), I can’t possibly cover them all in this guide. Consult your firewall software’s help files for instructions on how to disable it or allow the computer to accept connections.

Grand Finale
THAT’S IT! If done correctly, you should be ready to host ZSNES netplay games with another person (only one other computer at this time). All you have to do is give them your PUBLIC IP address as reported by http://www.ipchicken.com and plug that into ZSNES.
kevman
Redneck Gamer-Mod
Posts: 433
Joined: Wed Aug 04, 2004 2:15 am
Location: Pittsburgh

Post by kevman »

Fix0red...


Sorry, Jo, I deleted your post in the splitting process.
SHREIK!!!!!!! DDdddnnnnnnaaaa! GESTAHLLLLLLLLLL!!!!!!!!

Steelers now officially own your ass.
Acolyte
New Member
Posts: 3
Joined: Fri Aug 12, 2005 11:06 am

Post by Acolyte »

I got lost on step 4 :?:
rlbond
Hazed
Posts: 82
Joined: Tue Jul 12, 2005 5:13 am

Post by rlbond »

note that many routers have default IP addresses of 192.168.1.1, including linksys. Belkin routers are 192.168.2.1

Also, port forwarding is often called "virtual server" or something like that.
To truly own, you must own at all games.
Acolyte
New Member
Posts: 3
Joined: Fri Aug 12, 2005 11:06 am

Post by Acolyte »

I don't get this party

Here are the settings you need to fill (where applicable) for ZSNES:

Where do i put this in?
Bauglir
New Member
Posts: 5
Joined: Sun Dec 19, 2004 6:43 pm

Post by Bauglir »

Quick question: Do both people have to have ports forwarded, or just the host?
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

Both computers will have to have the port forwarded.
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
AntoineWG
Trooper
Posts: 530
Joined: Thu Jul 29, 2004 6:59 pm
Location: 127.0.0.1
Contact:

Post by AntoineWG »

Only for UDP. TCP only requires that the host forward.
[i]"It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison[/i]
AntoineWG
Trooper
Posts: 530
Joined: Thu Jul 29, 2004 6:59 pm
Location: 127.0.0.1
Contact:

Post by AntoineWG »

I retitled the thread to hopefully make it more obvious.
[i]"It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison[/i]
pharaoh0927
Rookie
Posts: 11
Joined: Thu Aug 18, 2005 3:07 am

Post by pharaoh0927 »

This is great!!! thanks guys, i got it to work this time.
Zsnes is by FAR the best emulator ever created!!!
Best RPG game ever = Chrono trigger
MMORPG's rule!
Fido 14
Rookie
Posts: 11
Joined: Fri Apr 21, 2006 6:13 am

Post by Fido 14 »

If those don’t produce an administration page, consult your router’s manual and check out http://www.portforward.com . They probably have specific instructions for your router.

Here are the settings you need to fill (where applicable) for ZSNES:

Service/Game Name: ZSNES
Public/External Port: 7845 (see notes below)
Private/Internal Port: 7845 (see notes below)
Private/Internal IP Address: (Insert your computer’s private IP address here)
Protocol: Both TCP and UDP (see notes below)

And the setting’s you’ll need in a separate forwarding rule for Zbattle.net:
Service/Game Name: Zbattle
Public/External Port: 4000
Private/Internal Port: 4000
Protocol: UDP only
Okay, I'm stuck on this part. I'm at the administration page, but I don't know where to fill out this information at.
Fido 14
Rookie
Posts: 11
Joined: Fri Apr 21, 2006 6:13 am

Post by Fido 14 »

Okay, forget my above question. I figured that part out, but I'm still stuck. I don't know where to put this information since my administration page has something else.
Service/Game Name: ZSNES
Public/External Port: 7845 (see notes below)
Private/Internal Port: 7845 (see notes below)
Private/Internal IP Address: (Insert your computer’s private IP address here)
Protocol: Both TCP and UDP (see notes below)
You see, this is what mine looks like and I don't know what to put in.

Image
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Did you read Clements notes at all?

Global Port Range = Public/External Port
Clements wrote:NOTES:
Some routers allow you to enter a port range for forwarding multiple ports in one entry. In this instance, fill in 7845 for the starting and ending port.
Base Host Port = Public/Internal Port

Protocol...
If your router doesn’t allow you to select both TCP and UDP at the same time, you’ll have to create two separate entries with the same settings, one for TCP and one for UDP. You can get by with just TCP, but UDP does not lag as much as TCP.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
AntoineWG
Trooper
Posts: 530
Joined: Thu Jul 29, 2004 6:59 pm
Location: 127.0.0.1
Contact:

Post by AntoineWG »

Global Port range = 7845 to 7845

Base Host Port = 7845

Create 2 forwarding entries - one for TCP and one for UDP.
[i]"It is better to have tried and failed than to have failed to try, but the result's the same." - Mike Dennison[/i]
Fido 14
Rookie
Posts: 11
Joined: Fri Apr 21, 2006 6:13 am

Post by Fido 14 »

Okay, but there is no where to put my Private/Internal IP Address as the instructions said.
Fido 14
Rookie
Posts: 11
Joined: Fri Apr 21, 2006 6:13 am

Post by Fido 14 »

Okay, never mind. I fixed it.
sellako

Post by sellako »

Hello guys, Im having some problems to play online since I got my new modem with router.
Im stuck in this part, see the screens, I dont know why this is happening its pretty strange actually:
http://img173.imageshack.us/my.php?image=step14mr.jpg <- step 1
http://img174.imageshack.us/my.php?image=step29tw.jpg <- step 2
http://img185.imageshack.us/img185/9346 ... ply3gy.jpg <- after apply

So, any ideas?
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

Your router settings thinks that what you entered is not really a port range at all, since the values are the same (furthermore, the router thinks that the Ending Port number is smaller). Try setting the Ending Port one larger than the Starting port.
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
sellako

Post by sellako »

Agozer wrote:Your router settings thinks that what you entered is not really a port range at all, since the values are the same (furthermore, the router thinks that the Ending Port number is smaller). Try setting the Ending Port one larger than the Starting port.
yay that wordked! Now I can play online again with udp (yuhuuu no lags :P ) ;D, thanks a lot buddy!
aznfire1485

Post by aznfire1485 »

Hmm, I was following the guide on portforward.com and it told me to do this for my modem:

Image

I just want to know if this is ALL i need to do? I thought I had to put my ip somewhere?
Volnox

Post by Volnox »

ok im new here and i got probs with my new router

I´m german so i got an german t-online Speedport 500v router dont know if anybody knows this so.. i can enter udp and tcp but if i make it so

tcp:4000
udp:7845

then it says port numbers incorecct or something plz can some1 of you guys help me im beggin you
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Volnox wrote:ok im new here and i got probs with my new router

I´m german so i got an german t-online Speedport 500v router dont know if anybody knows this so.. i can enter udp and tcp but if i make it so

tcp:4000
udp:7845

then it says port numbers incorecct or something plz can some1 of you guys help me im beggin you
You probably want to use the same port #s when you are entering it in.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Volnox

Post by Volnox »

thx for the quick answer but i dont know what u mean with that im really sry
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Volnox wrote:thx for the quick answer but i dont know what u mean with that im really sry
Your router/firewall software may be expecting the same port number entered in both UDP+TCP.

Either that, or it expects one or the other to be filled (but not both).
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Chuuri

Post by Chuuri »

ok, hello everyone =) I'm new here and have a question concering this:

at step 3, it asks me to log in - but I don't know what to type. sorry I know I'm stupid T_T is the name of my computer requested here? and where can I find the password?

thanks so much in advance for helping ^^
Post Reply