Switching from Lan to Public

Post Reply
Benesato
Posts: 2
Joined: Sat May 31, 2014 6:52 pm

Switching from Lan to Public

Post by Benesato » Thu Jul 21, 2016 10:25 pm

Hello, i wasn't sure if i should start a new post or continue the conversation in an older post with a similar topic.

I'm trying to go from Lan (192.168.x.x) to Public IP (50.163.x.x). So far I've:

1. Forwarded the ports on the combo modem/router (contacted ISP to double check settings were done properly, they tell me the ports are opened)
2. Updated zone_settings.sql with the query in the "Configure Zone IP" section. Double checked and the new IP is populated in that field.
3. Updated login_darkstar config setting so TCP/IP parameters are public IP.
4. Made exceptions to the firewall and when that didn't work, disabled both firewalls completely to check. (Both Windows and Combo modem/router)
5. Left everything else the same for mySQL parameters and hostIP (localhost)

When i start the DS login server, it cannot connect to the database.

[21/Jul 21:31][1;37m[Info][0m Console Silent Setting: 0
[21/Jul 21:31][1;31m[Error][0m make_listen_bind: bind failed (socket #1, code 10049)!
[21/Jul 21:31][1;33m[Warning][0m Memory manager: Memory leaks found and fixed.

When I start the DS map server, I'm guessing it also cannot connect? (get lots of the line repeated below)

[21/Jul] [21:49:01][1;31m[Error][0m luautils::onSpawn: error loading module 'scripts/globals/settings' from file '.\scripts/globals/settings.lua':
.\scripts/globals/settings.lua:6: '=' expected near 'is'

Yet when i revert steps 2 and 3 back to Lan IP (192.168.x.x) everything works fine again.

Is there a step I'm missing to getting the DS login and map servers to connect to the SQL database?

One thing I noticed with http://portchecker.co/check is that it claims the ports are still closed.
I was told by support that those ports stay closed until there is an application that opens them.
Was also wondering if that was true or the source of my problem.

Thank you!

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Switching from Lan to Public

Post by kjLotus » Thu Jul 21, 2016 10:42 pm

login_darkstar should bind to 0.0.0.0, not your public address

as for the map server, whatever you changed in settings.lua has a syntax error

Benesato
Posts: 2
Joined: Sat May 31, 2014 6:52 pm

Re: Switching from Lan to Public

Post by Benesato » Thu Jul 21, 2016 11:26 pm

Thank you kjLotus!!! You nailed it :D

Changed the values to 0.0.0.0 and login server came back.

Changed to the master settings.lua and no issues.

I copied the most recent version from github and i was back in action.

Appreciate the quick reply!

Post Reply