Game Development Community

Connecting over the Internet

by JohnnyD · in Technical Issues · 07/12/2007 (12:16 am) · 9 replies

Hi guys,

I've read almost all the complete forums and the mgstarter was just what I needed to get me started.
There is a little but, didn't find an answer anywhere.
I want this starterpack to run over the internet.
So here is what I did :
on the server side:
I opened up all ports from 28000 to 28200.
I altered common/prefs/prefs.cs to $pref::Master0 = "2:192.168.9.43:28000";
did the same in common/scripts/server/default.cs
and started the dedicated link wich came with the pack

on the client side :
I opened up all ports from 28000 to 28200.
I altered common/prefs/prefs.cs to $pref::Master0 = "2:192.168.9.43:28000";
did the same in common/scripts/client/default.cs

I start the client and I do querylan and it works perfect.
But here comes the but.... when I tried this on another client outside the lan where I tried every possible combination to get it to work over the internet it didn't work.
Changed the local ip's to the wan ip's on the clientside and so on.
The strange thing is when I check my ports with shields up and I know this from experience and the application is running the port should be open or stealth but they are closed.

Could someone help me out here I'm sitting almost a week on this problem.

Thnx in advance,
Johnny

About the author


#1
07/12/2007 (12:57 am)
Hi Johnny.

Do you have a firewall in the way? You'll need a rule in there allowing the internet through on the port ranges you specified on a specific protocol, not allowing all protocols. If you have a hardware based firewall lookup NAT (Network Address Translation). Software based firewalls or Wireless routers should have a rule base allowing you to do this, give it a go, but don't open your firewall up too much, security is key!

Jules
#2
07/12/2007 (1:01 am)
Hi Jules,

yes I did a NAT from my external IP with the ports 28000-28200 to the lan-IP of the server

Johnny
#3
07/12/2007 (1:48 am)
Johnny

Do you have any firewall logs? To see if you are actually hitting the external side of the firewall, then translating from your public ip address to the private. Worth opening a ping perhaps temporarily on the ip address to see if you are getting a reply back.

Do a trace route. Also it may be that you need to add a route back on your machines routing table, type route print (at your command prompt) on your machine, depending on how things have been setup.

Jules
#4
07/12/2007 (1:53 am)
If you are using a modem/router then you are only going to be pinging that.. if you have a modem/router from your ADSL/DSL connection, then its worth looking at the config on that box as sometimes they block certain ports too.. then connecting to your local side of your firewall (if hardware based) or if you have a seperate network card on your pc or server (one for external, one for internal) - I don't know your complete setup. But feel free to email on helpdesk (at) something2play.com an we'll see if I can put some ideas your way on how to resolve this.
#5
07/12/2007 (2:57 am)
Hi Jules,

the strange thing is that if I start Rose Online or Lineage as Server I dont have any probs, it's only with this dedicated server of MGstarter.

My Setup is an adsl-router with napt where I reroute all connections from 28000-28200 to the internal-server wich has 192.168.9.43, so it is a hardware kind of firewall, btw I did this with even higher ports too and it worked for other applications.
Because it workes with the other games I was thinking about the MGstarter itself who doesn't do his Job.
So I'm all ears for suggestions.

Johnny

btw.. sended this to you email too
#6
07/12/2007 (3:35 pm)
Hi Guys,

nvm ... I made a noob mistake, did the portforward over TCP and it should be UDP.

Thnx anyways for the response

Johnny
#7
07/12/2007 (3:38 pm)
Thanks for coming back and letting us know :)
#8
07/12/2007 (4:10 pm)
Np ;-)
#9
07/12/2007 (4:43 pm)
Glad you got it working in the end :)