Page 1 of 1

EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 5:39 pm
by Lighted Shadows
I am trying to figure this out. I run an EQEmu server and I can't run EQ2EMU server @ the same time. I assume this has to do with some port issues. Anyone ever try to run both servers on the same machine?

I know EQEMU uses ports 7000-7100, 9000, and mysql is on 3306 Totally unsure if any other ports are used I only port forward those listed in my router.

Re: EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 5:56 pm
by thefoof
World defaults to port 9000, you can change it in the LoginServer.ini that may be your problem.

Re: EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 6:02 pm
by Jabantiz
It is a port conflict. Just tested the following and it seems to work. This assumes minilogin, if you are using public you can leave the login ports alone. All changes are in red.

In LoginServer.ini
[LoginServer]
loginserver=localhost
loginport=9200
worldname=
worldaddress=
#internalworldaddress=INTERNAL_IP_HERE (If used, otherwise blank)
worldport=9300
Further down in LoginServer.ini
[LoginConfig]
ServerMode=StandAlone
ServerPort=9200
Finally to get the client to connect to the login server change eq2_default.ini, again, if using public login you can skip this
cl_ls_address localhost:9200
EDIT:
loginserver defaults to 9100 so you shouldn't actually have to change it, no clue why I thought that would be required, with the above changes I currently have a EQEmu and EQ2Emu server + logins running and able to log in both though.

Re: EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 7:11 pm
by John Adams
Jabantiz wrote:Finally to get the client to connect to the login server change eq2_default.ini, again, if using public login you can skip this
cl_ls_address localhost:9200
EDIT:
loginserver defaults to 9100 so you shouldn't actually have to change it, no clue why I thought that would be required, with the above changes I currently have a EQEmu and EQ2Emu server + logins running and able to log in both though.
yeah, putting port in the eq2_defaults.ini is not necessary. Client will reply to whatever it hits on localhost/eq2emulator.net

PS: I was told long ago "localhost" does not work, so I have always used 127.0.0.1. I know they're the same, but that's what I was told when I joined the project in 2007.

Re: EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 8:53 pm
by Lighted Shadows
I just use eq2emu login as I have 6-10 friends that play so I only need to change the world server port? I cant see how login defaulting to 9000 will work behind my router as all port 9000 goes to my server. and that port is currently used by EQEMU login

Re: EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 8:59 pm
by thefoof
Lighted Shadows wrote:I just use eq2emu login as I have 6-10 friends that play so I only need to change the world server port? I cant see how login defaulting to 9000 will work behind my router as all port 9000 goes to my server. and that port is currently used by EQEMU login
Login is 9100, World defaults to 9000. Both are changed in the LoginServer.ini file. But yes if 9000 is in use you should change it for the world server.

Re: EQ2Emu with EQEmu

Posted: Wed Nov 13, 2013 9:23 pm
by John Adams
I see the confusion... here's the bottom line --

Use the EQ2Emulator.net login server for your world. Point all your clients to cl_ls_address eq2emulator.net

Your world's LoginServer.ini file (I know, why the hell is it called LoginServer.ini?) should be configured as follows -
[LoginServer]
loginserver=eq2emulator.net
loginport=9100
worldname={your world's name that you registered}
worldaddress={your IP or domain name}

#internalworldaddress={not needed unless you have issues}
worldport=9200
locked=false
account={your account}
password={your password}

autotableupdates=always
autotableverbose=false
autotabledata=true

[UpdateServer]
updateserveraddress=updates.eq2emulator.net
updateserverport=9103

[LoginConfig]
ServerMode=StandAlone
ServerPort=9100

Broken down:
loginserver=eq2emulator.net - this is our URL
loginport=9100 - this is OUR loginserver port, should not affect you whatsoever


worldname={your world's name that you registered} - this is what shows up in the server select list

worldaddress={your IP or domain name} - this is your IP address (whatismyip.com) or URL if you have a public domain. This is how OUR loginserver knows where to send your players.

#internalworldaddress={not needed unless you have issues} - Depending on your Router/NAT config, or where your world runs vs your client(s), you might need to remind world what it's local IP is... usually not needed

worldport=9200 - This is the big answer you're looking for. This can be ANYTHING valid, as long as it's not something already in use. This port needs to be in your router/firewall to allow clients to connect, and NAT knows how to forward the connection to the right machine (your World.exe's IP address - ipconfig /all)

account={your account} - your account you used to create your World account here at EQ2Emulator.net
password={your password} - your password (etc)

Everything else, leave alone.

Good luck! And if you get 6-10 players playing, maybe they should be testing EQ2Emulator's core server as well.


PS: EQ (1) Emu's client is locked at port 9000, cannot be changed like ours, hence your initial woes. I guess our initial config files should be set differently by default.