NeverwinterConnections.com

   NeverwinterConnections.com
   Main Topics
   Server Configuration

   NWN firewall/router HOWTO
Pages: 1  
   Author  Topic: NWN firewall/router HOWTO  (Read 338 times)
deathchild

Extreme Poster


Last On: 08/05/09
View Profile
Message Player

United States

Posts: 534
NWN firewall/router HOWTO
Return To Top       

This is a post found at the Bioware NWN forums, their have been soooo many posts on this I thought to share it here.

How can I play through a Firewall?

If you are trying to play through a firewall of some sort, here is some information for you to help you get connected. Neverwinter Nights uses UDP, not TCP for its connections. If you think that your firewall is preventing you from connecting to the game servers, please make sure that the following ports are open:

* Ports 5120 through 5300
* Port 6500
* Port 27900
* Port 28900

In addition to opening the ports listed above, you may need to allow incoming connections on the port you are running your server on (5121 by default) and forward those connections to the computer running the server.

If you have multiple computers behind a firewall and you want to play multiplayer with 2 or more of them at the same time, you must ensure the Client Port setting for each computer is set to a different value. You will find this entry in the file nwnplayer.ini Simply double click on it to open it, and look for the Client Port= line in the [Profile] section. Change this from the default value of 5120 on each machine. You have to stay in a certain range, so use numbers like 5121, 5122, 5123, etc.

If your server does not appear on the GameSpy game list:

1. Verify that it is does not appear for other users. It may not be appearing for you because your game is published by your external IP address, this address may not be valid from inside your firewall.
2. Verify that the server is accessible from the Internet, have a friend Direct Connect using your external IP address (ie not 127.0.0.1 or 192.168.*.*, these are local addresses).
3. If you are starting your module from the command line of the Windows or Linux dedicated server, try starting it from within the application.
4. If your module is very large or contains very large areas, try breaking it up into smaller pieces.

If you are wanting to make sure that your NAT is set up to allow the game to play here are some details.

Outgoing packets

* Source port: 5120-5129
* Destination port: 5121-5300

Incoming packets

* Source port: 5121-5300
* Destination port: 5120-5129

On the Game Client side, here are some changes to make things go better. Go to your nwnplayer.ini file in your Neverwinter Nights install directory, and find the following section:

[Profile]
Client Port=XXXX

Our suggestion is to change XXXX to 5120.

Hope that helps.

Also, if you are using DHCP in your Router, to give dynamic IPs to your computers in the network, then turn that off. It often has problems with port forwarding. Instead, do static IPs for your computers in the network, all in the same range as your standard gateway (the Router's internal IP address i.e. for a Siemens router it is usually the 192.168.2.1). You will need to put this as the standard gateway and you will need the IPs for the DNS servers from your ISP.

I.P. Logged
Gulfwulf

Forum God


Last On: 08/25/10
View Profile
Message Player

United States

Posts: 4638

Return To Top       

You can also use one of the guides listed at Portforwarding.com if you're using a router: http://portforward.com/english/applications/port_forwarding/NWN/NWNindex.htm

I.P. Logged
Cernunnos

Veteran Poster


Last On: 02/19/10
View Profile
Message Player

United States

Posts: 52

Return To Top       

OK, I have read the bioware foums on this subject extensively looking for an answer to my specific problem, and found nothing of help. Perhaps if I specify my problems here someone will have some possible solutions.

My problem, basically, is that I requested a static IP from my ISP, and it will cost me nearly 3 times what I am paying now to obtain one.

Seeing as how this is way out of my price range, I am hoping there is a way to use port forwarding succesfully with a dynamic IP, 'cause unless I win the lottery, I'm stuck with that.

I'm using a linksys router to connect two machines to my dsl modem. I have visited my router site and followed the intsructions on the portforwarding link to open the appropriate ports for NWN, but to no avail. Now I assume this isn't working because I am using a dynamic IP, but my knowledge of such things is limited, so maybe someone can help me with this.

What am I trying to do? Simple, using NWN dedicated server, I am trying to run a semi-persistent world for my friends, and hopefully others. I have put in a lot of hours developing my mod, and I would really like to get it up and have people outside my LAN be able to play it.

The specific problem? I have tried everything I can that doesn't involve paying a huge monthly fee for a static IP, and still my server times out for people when they try to direct connect using my external IP (i.e. not 192.168...).
Also, of course, the server does not show up in gamespy.

Again, I have read through the bioware forums on this subject *extensively,* I have spent at least 5 hours reading and fiddling with my router/firewall/modem, and while I am not an expert in these things, I feel confident that I have tried everything suggested on bioware forums, and on this site's forums to get my server publically accessible and it still doesn't work.

So if you have any suggestions, please let me know.
Thanks, Cernunnos

I.P. Logged
Gulfwulf

Forum God


Last On: 08/25/10
View Profile
Message Player

United States

Posts: 4638

Return To Top       

First of all, you need to setup a static ip address for your computer, not your router, in that, this won't involve your ISP. There are guides here that walk you through the process based on your Operating System:http://portforward.com/networking/staticip.htm

After you have that setup and working, then use the number that you've assigned to your computer in your router's port forwarding table. If you need a guide, there's a link in my previous post. Also, some firewalls require that you setup rules for ports you want to allow data to come in on. ZoneAlarm is one example, in that you have to tell it what ports you want to allow in. If, after you've done all of the steps, you see your game in GSA after starting the stand-alone server, then everybody else should be able to see it as well. If you have any questions, feel free to pm me.

I.P. Logged
Mulu

Forum God


Last On: 08/17/10
View Profile
Message Player

United States

Posts: 2429

Return To Top       

on Jul 9, 2005, 6:04 PM, Gulfwulf wrote:
You can also use one of the guides listed at Portforwarding.com if you're using a router: http://portforward.com/english/applications/port_forwarding/NWN/NWNindex.htm

Best Link Ever.

I.P. Logged
Victor Lazlo

Experienced User


Last On: 04/27/09
View Profile
Message Player

Canada

Posts: 20

Return To Top       

on May 15, 2008, 8:12 PM, Mulu wrote:
on Jul 9, 2005, 6:04 PM, Gulfwulf wrote:
You can also use one of the guides listed at Portforwarding.com if you're using a router: http://portforward.com/english/applications/port_forwarding/NWN/NWNindex.htm

Best Link Ever.


You can say that again...

My new router own Technical support didn't know the info I needed but here it was with pics. and everything lol

I.P. Logged
Pages: 1  
Moderators: Rizzen, Gilaun, Shinji, Garnak, J'Dai Voisin, Lazybones, Ochobee, Eliandi
   NeverwinterConnections.com
   Main Topics
   Server Configuration

   NWN firewall/router HOWTO

 
Copyright © 2002 Shawn Schultz. All rights reserved.
All trademarks are properties of their respective owners. Read our Terms of Use and our Privacy Policy.