Game server will not load with internal IP.

enkidou
Posts: 29
Joined: Mon Jan 20, 2014 8:42 am

Game server will not load with internal IP.

Post by enkidou » Thu Dec 11, 2014 8:03 am

I had a private server up and running about a year ago but for the life of me I can't remember exactly what I did then to get this working. DSConnect and DSGame load just fine if and only if I am using my local 127.0.0.1 IP. I have three computers in the house that I want to be able to connect and when I replace my local IP with my internal IP 192.168.x.x the game servers open initially but then close before loading.

I made sure to change the IP in login_darkstar.conf, map_darkstar.conf, search_server.conf as well as the queries section of Navicat but just can't get it to load.

Appreciate any help.

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Re: Game server will not load with internal IP.

Post by nasomi » Thu Dec 11, 2014 9:51 am

Create a shortcut to the server and add --port [port] --ip [ip].

You need to update your zone_settings zoneip and zoneport as well to reflect your local machine. YOu'll notice that's changed a bit, I would just use the default, which escapes me at the moment. I use 54240 for my city server. That ip in zoneport must match the one in the arguements of your shortcut for --port.

enkidou
Posts: 29
Joined: Mon Jan 20, 2014 8:42 am

Re: Game server will not load with internal IP.

Post by enkidou » Thu Dec 11, 2014 10:39 am

nasomi wrote:Create a shortcut to the server and add --port [port] --ip [ip].

You need to update your zone_settings zoneip and zoneport as well to reflect your local machine. YOu'll notice that's changed a bit, I would just use the default, which escapes me at the moment. I use 54240 for my city server. That ip in zoneport must match the one in the arguements of your shortcut for --port.
Forgive me. I'm really not up to par on this stuff at all. So much so that I don't understand what you mean when you say "add --port [port] --ip [ip]."

Also, do you mean I need to update the IP value on every line (48-333) in the zone_settings.sql file? And zoneport..... here, let me just paste this section from the zone_settings file.
CREATE TABLE `zone_settings` (
`zoneid` smallint(3) unsigned NOT NULL DEFAULT '0',
`zonetype` smallint(5) unsigned NOT NULL DEFAULT '0',
`zoneip` tinytext NOT NULL,
`zoneport` smallint(5) unsigned NOT NULL DEFAULT '0',

`name` tinytext NOT NULL,
`music` tinyint(3) unsigned NOT NULL DEFAULT '0',
`battlesolo` tinyint(3) unsigned NOT NULL DEFAULT '0',
`battlemulti` tinyint(3) unsigned NOT NULL DEFAULT '0',
`restriction` tinyint(2) unsigned NOT NULL DEFAULT '0',
`tax` float(5,2) unsigned NOT NULL DEFAULT '0.00',
`misc` smallint(5) unsigned NOT NULL DEFAULT '0',
`navmesh` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`zoneid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=20 PACK_KEYS=1 CHECKSUM=1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
Do I need to alter those two lines?

Sorry for being so clueless on this. Really don't remember having much trouble a year ago.

enkidou
Posts: 29
Joined: Mon Jan 20, 2014 8:42 am

Re: Game server will not load with internal IP.

Post by enkidou » Thu Dec 11, 2014 10:59 am

Or I guess you might mean changing the zone_settings in Navicat. If so, that was changed as well. I didn't touch the zoneport though. It was/is set at 54230.

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Re: Game server will not load with internal IP.

Post by nasomi » Thu Dec 11, 2014 11:37 am

If you right click on the desktop and go to New> Shortcut, you'll get a box. Hit browse and find your game executable and select it. Then at the end of the path, say c:\darkstar\DSGame-Server.exe --port 54230 --ip 192.168.0.115 or whatever your server ip is.

As far as updating your zone_settings, don't change hte sql file. Open navicat and hit F6 to bring up a console window. Type update zone_settings set zoneip = '192.168.0.115'; or whatever the ip is of the server.

Please note that your server will only be accessable on your LAN, not from internet with these settings.

enkidou
Posts: 29
Joined: Mon Jan 20, 2014 8:42 am

Re: Game server will not load with internal IP.

Post by enkidou » Thu Dec 11, 2014 12:08 pm

nasomi wrote:If you right click on the desktop and go to New> Shortcut, you'll get a box. Hit browse and find your game executable and select it. Then at the end of the path, say c:\darkstar\DSGame-Server.exe --port 54230 --ip 192.168.0.115 or whatever your server ip is.

As far as updating your zone_settings, don't change hte sql file. Open navicat and hit F6 to bring up a console window. Type update zone_settings set zoneip = '192.168.0.115'; or whatever the ip is of the server.

Please note that your server will only be accessable on your LAN, not from internet with these settings.
Thanks for the reply. Still a no go unfortunately. Could this possibly be an issue of my zoneport being closed? I probably should have let you know the setup here is going through a router which is connected to a combo modem/router from our ISP. Could port 54230 being closed on either one cause this issue?

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Game server will not load with internal IP.

Post by whasf » Thu Dec 11, 2014 12:31 pm

don't forget --hairpin
-- Whasf

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Re: Game server will not load with internal IP.

Post by nasomi » Thu Dec 11, 2014 12:43 pm

You may have to disable windows firewall on the server. I have run into that issue.

So long as you and the server are on the same network you should still be able to connect without any further configuration.

And yes, your ashita boot command will need to read --server 192.168.0.115 --hairpin. However I don't think that will affect the ability to connect to the login server.

enkidou
Posts: 29
Joined: Mon Jan 20, 2014 8:42 am

Re: Game server will not load with internal IP.

Post by enkidou » Thu Dec 11, 2014 12:54 pm

Unfortunately I can't even get to the point of using the hairpin option with Ashita since the game servers won't load completely. I disabled Windows firewall and even turned off my Avast temporarily. Same deal. It opens up to the point you see in this image and then closes.

Image

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Game server will not load with internal IP.

Post by atom0s » Thu Dec 11, 2014 1:05 pm

That is how the login server should look after loading properly. You need to open the game server as well. You can check the log files in /logs/ to see whats happening if they are not staying open or just instantly closing etc.

Post Reply