Public server example
Hi all,
Does anyone have an example of a public server with a private login? More specifically the json file and the login file Qould love to see how people have it set up |
Sample below.
I've added the public login for a more complete version as you can use both with no problems. if only want local just remove the loginserver2 section and rename loginserver1 to loginserver.. eqemu_config.json { "DELETE_THIS_COMMENT" : "10.x.x.x is local static ip (i prefer to using 127.0.0.1) 136.147.168.2 = your external world ip - Admin/Password is non hashed creds referenced in login.ini tables - internal and external use loginserver1,loginserver2 confs or just have 1 called loginserver. legacy tag must be set 0 for local, 1 is only req for eqemu public loginserver (or was..)", "server": { "world": { "loginserver1": { "legacy":"0", "host": "136.147.168.2", "port": "5999", "account": "Admin", "password": "Password" }, "tcp": { "ip": "136.147.168.2", "port": "9001" }, "address": "136.147.168.2", "longname": "Elves R Real", "loginserver2": { "legacy": "1", "host": "login.eqemulator.net", "port": "5998", "account": "", "password": "" }, "telnet": { "port": "9000", "enabled": "true", "ip": "136.147.168.2" }, "key": "kentaikwondo_uniquestringn%", "http": { "port": "9080", "enabled": "true", "mimefile": "mime.types" }, "shortname": "IRLRealm" }, "chatserver": { "host": "136.147.168.2", "port": "7500" }, "mailserver": { "host": "136.147.168.2", "port": "7500" }, "database": { "host": "10.1.1.176", "port": "3306", "username": "dbuser", "password": "dbpassword", "db": "peq" }, "zones": { "defaultstatus": "0", "ports": { "low": "7000", "high": "7400" } }, "qsdatabase": { "host": "10.1.1.176", "port": "3306", "username": "dbuser", "password": "dbpassword", "db": "peq" } } } Login.ini [database] host = 10.1.1.176 port = 3306 db = peq user = dbuser password = dbpassword subsystem = MySQL [options] unregistered_allowed = TRUE reject_duplicate_servers = FALSE trace = TRUE world_trace = TRUE dump_packets_in = FALSE dump_packets_out = FALSE listen_port = 5999 local_network = 136.147.168. /*<<------- leave last xxx out here */ auto_create_accounts = TRUE [security] plugin = EQEmuAuthCrypto mode = 5 [Titanium] port = 5998 opcodes = login_opcodes.conf [SoD] port = 5999 opcodes = login_opcodes_sod.conf [schema] account_table = tblLoginServerAccounts world_registration_table = tblWorldServerRegistration world_admin_registration_table = tblServerAdminRegistration world_server_type_table = tblServerListType |
thanks! i'll fiddle around with this
|
Hello everyone, back from a long break and want to continue to develop my server that began back in 2013, last modified in 2017. I reinstalled the software using Akka's newest autoinstaller (WAAAAY better than the circa 2016-17 version, nice work!), and easier than the old manual way. I can log in just fine, create content, et cetera. Others are having an issue logging into the server. It appears on the server list "The Fallen Empire EQEmuServer" but testing has shown no one else can log in except me locally. Testing was done with both Titanium and RoF2 clients. Perhaps there is some small thing I overlooked in the eqemu_config.json or login.ini files (both posted below for critique).
eqemu_config.json { "server" : { "chatserver" : { "host" : "", "port" : "7778" }, "database" : { "db" : "peq", "host" : "localhost", "password" : "**********", "port" : "3306", "username" : "root" }, "mailserver" : { "host" : "", "port" : "7778" }, "qsdatabase" : { "db" : "peq", "host" : "localhost", "password" : "**********", "port" : "3306", "username" : "root" }, "webinterface" : { "port" : "9081" }, "world" : { "http" : { "enabled" : "true", "mimefile" : "mime.types", "port" : "9080" }, "key" : "*************************", "loginserver1" : { "account" : "", "host" : "login.eqemulator.net", "legacy" : "1", "password" : "", "port" : "5998" }, "loginserver2" : { "account" : "", "host" : "192.168.0.10", "password" : "", "port" : "5998" }, "longname" : "The Fallen Empire EQEmuServer", "shortname" : "The Fallen Empire", "tcp" : { "ip" : "127.0.0.1", "port" : "9001" }, "telnet" : { "enabled" : "true", "ip" : "0.0.0.0", "port" : "9000" } }, "zones" : { "defaultstatus" : "0", "ports" : { "high" : "7400", "low" : "7000" } } } } login.ini [database] host = localhost port = 3306 db = peq user = root password = ********* subsystem = MySQL [options] unregistered_allowed = TRUE reject_duplicate_servers = FALSE trace = TRUE world_trace = FALSE #<-- is this the issue??? dump_packets_in = FALSE dump_packets_out = FALSE listen_port = 5998 local_network = 192.168.0.10 auto_create_accounts = TRUE [security] plugin = EQEmuAuthCrypto mode = 5 [Titanium] port = 5998 opcodes = login_opcodes.conf [SoD] port = 5999 opcodes = login_opcodes_sod.conf [schema] account_table = loginserver_server_accounts world_registration_table = loginserver_world_server_registration world_admin_registration_table = loginserver_server_admin_registration world_server_type_table = loginserver_server_list_type |
did you forward ports on your network?
From your router.... |
Hi Maze. Thanks for the reply.
I used Akka's autoinstaller and it should open the 7000-7100 and other used ports right? Or, do I need to manually go into my router/modem (Motorola SBG6580-G228) and forward them? Under IPv4: I set the following ports to be forwarded (5998-5999, 7000-7100, 9000) both TCP and UDP. Forwarded Ports External IP Address & Start/End Port Local IP Address & Start/End Port Description Protocol Forwarding 0.0.0.0 7000 / 7100 192.168.0.10 7000 / 7100 EQEmu BOTH Yes 0.0.0.0 9000 / 9000 192.168.0.10 9000 / 9000 EQEmu BOTH Yes 0.0.0.0 5998 / 5999 192.168.0.10 5998 / 5999 EQEmu BOTH Yes |
Server "The Fallen Empire EQEmuServer" is up with modified ports opened. I'll know if anyone successfully logs in by the logs or you can post here if you tried successfully (or status/result if unsuccessful).
Thanks Maze and everyone else. |
not sure your status based on last comment but some notes here:
All of your config's ips are local, if you want the server to be also public you need to tell the world where you are. ( primarily setting the ips based on your "internet" world address. ) you also have a mixture of 127.0.0.1, "localhost" and 192.168.0.10 suggest to use just the actual 192.168.0.10 to keep it clean. ( The only ip that should be 192.168.0.10 is the databases ".host" ) https://www.myglobalip.com/ that is your internet address to use. look through the sample i posted initially, your missing the "address", set this to internet address so loginserver1 (eqemulator) login knows where you are. in .json Everywhere I've wrote 10.1.1.176 that's equal to your 192.168.0.10 Everywhere I've wrote 136.147.168.2 that's equal to your internet address in .ini world_trace = FALSE #<-- is this the issue??? NO but suggest to change local_network = 192.168.0.10 to your world address and leave off the last number per example, otherwise i doubt even your lan would work let alone wan. example: 123.456.789. <-- no last number otherwise it would be specific to 1 pc , not lan/wan. |
also should mention, a better method of testing/debugging problems is to simplify.
i.e Remove/ not use, the local login server, so your'e only dealing with 1. i.e delete loginserver2 section rename loginserver1 to loginserver set parameters to eqemulators set all ips correct to tell the world where you are. test. once you change your settings so it works for you with only eqemulator loginserver, then there's a better chance it will work for others. if it all works, then revisit if you need to add back local loginserver. |
I think I understood those changes and made them correctly; the files are not in the same order but the hierarchy should match. I hope I remembered how to embed the code.
eqemu_config.json Code:
{ Code:
[database] |
With those changes, server still boots up and I'm still able to log in from same machine of course. I cannot test the login ability from others at the moment.
New: the loginserver.exe window keeps reinitializing nonstop now (not good). |
Code:
"loginserver2" : { default is Admin / Password in your case check the table : loginserver_server_admin_registration port 5998 titanium / 5999 rof2 |
Code:
Login.ini |
No, leave the port at 5998 for loginserver2.
You only change the port in the client's eqhost.txt file. |
you need port forward 9001 also
|
All times are GMT -4. The time now is 12:21 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.