EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Login problems (https://www.eqemulator.org/forums/showthread.php?t=38801)

jdoran 09-19-2014 06:35 PM

Login problems
 
In addition to the problems I am having building with LUA, the loginserver
is giving me fits. I have successfully used the older one (from several years ago), and the config looks to be pretty much the same.

(Yes, I need to use a private login server, because I want to make some minor changes for testing purposes)

I am able to login and get to server select. When I hit play I am dumped. Here is the log entry from the login server:

Code:

[Network] [09.19.14 - 17:14:02] Login received from client.
[Client] [09.19.14 - 17:14:02] User: Jon
[Client] [09.19.14 - 17:14:02] Hash: f9cbc8cc0fbefd2c07209b7a3e7aef1c8cc5f023
[Network] [09.19.14 - 17:14:02] Application packet received from client (size 12)
[Network] [09.19.14 - 17:14:02] Server list request received from client.
[Network] [09.19.14 - 17:14:04] Application packet received from client (size 16)
[Network] [09.19.14 - 17:14:04] Play received from client, server number 1 sequence 5.
[Network Trace] [09.19.14 - 17:14:04] User-To-World Response received.
[Client] [09.19.14 - 17:14:04] Trying to find client with user id of 1.
[Client] [09.19.14 - 17:14:04] Found client with user id of 1 and account name of Jon.
[Client] [09.19.14 - 17:14:04] Found sequence and play of 5 1
[Network Trace] [09.19.14 - 17:14:04] dumping packet of size 20
05 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  | ................
01 00 00 00                                        | ....
[Network Trace] [09.19.14 - 17:14:04] Sending play response with following data, allowed 1, sequence 5, server number 1, message 101
[Network Trace] [09.19.14 - 17:14:04] dumping packet of size 20
05 00 00 00 00 00 00 00 - 00 00 01 65 00 00 00 00  | ...........e....
01 00 00 00                                        | ....
[Network Trace] [09.19.14 - 17:14:04] Sending play response for Jon.
[Network Trace] [09.19.14 - 17:14:04] dumping packet of size 20
05 00 00 00 00 00 00 00 - 00 00 01 65 00 00 00 00  | ...........e....
01 00 00 00                                        | ....
[Network] [09.19.14 - 17:14:04] Client disconnected from the server, removing client.
[Network] [09.19.14 - 17:14:04] New SoD client connection from 136.176.168.19:57077
[Network] [09.19.14 - 17:14:04] Application packet received from client (size 14)
[Network] [09.19.14 - 17:14:04] Session ready received from client.
[Network] [09.19.14 - 17:14:04] Session ready indicated logged in from world(unsupported feature), disconnecting.

The last few lines are puzzling. The client is disconnected from the server, and I assumed that was because of a hand-off to the zone server. Anyhow the client is still talking to the loginserver. None of the zone server processes log anything.
I do not get to character select, just back to server select.

This is driving me nuts, since I really need to get something running in the next week or so. Does anyone have any suggestions?

jdoran 09-19-2014 10:36 PM

I figured it out, and it was an unexpected angle... I was accessing the server remotely and there was a port which did not get forwarded. I remember setting those tables up, but must not have saved that config.

GreenMerope 09-20-2014 11:10 AM

May I ask what port it was? I've forwarded 5999, 5998, and 7000-9500 in hopes of catching everything. Is there a port I didn't take care of? I have the same trouble.

jdoran 09-20-2014 12:07 PM

I may have been too quick to post last night, I haven't tested remote play yet, so I may need to amend this. But I came home and was able to play locally, and saw something missing in the forwarding list. I'm going to head back to my office and try to connect remotely (in an hour or so).

7000-7100 (Both TCP/UDP)
9000 (Both, world server)
5998-5999 (Both)
7778 UDP (for chat server)

A wireshark trace of local gameplay showed only UDP 7004, UDP 7778, UDP 5999, UDP 9000 as destinations to the server machine. (Wireshark messes up 9000, calling it packet cable lawful intercept).

Messages originating on the internal network do not need forwarding. All of these were on UDP 7004.

GreenMerope 09-20-2014 12:15 PM

Sure I'm waiting to see if it works for you.

Luckily for me I have a friend trying out the server from a remote location.

I'll let you know exactly what happens:

From a remote connection it will let the person login fine, then show the server screen. Once the server was down, but usually it says server up. Clicking it dumps the player back to login with that "logged in from world" message in the login.ini.

Locally I'm able to play just fine.

jdoran 09-20-2014 02:26 PM

Sorry, port forwarding wasn't the issue. But the wireshark traces did help me figure things out. Are you on a local network using NAT?

In eqemu_config.xml, under <world>, set address to your public address (externally reachable), and set localaddress to your internal address.

Time will tell if that really messes up local play. Man I hope not.

Edit: I should add that I am successfully logged into the zone from my office.

GreenMerope 09-20-2014 02:47 PM

Thanks for the reply. I still can't get it to work. But my address wasn't set correctly. Is this something like what you're talking about?


<?xml version="1.0"?>
<server>
<world>
<shortname>Test</shortname>
<longname>Test</longname>

<!-- Only specify these two if you really think you need to. (read: You don't) --!>
<address>55.55.55.55</address>
<localaddress>192.168.1.131</localaddress>

I have a real address in between address there.

jdoran 09-20-2014 02:54 PM

Yes, that is what I did. Although I used a hostname instead of the ip address for "address". It shouldn't matter.

GreenMerope 09-20-2014 03:04 PM

Sorry to keep on, trying to get this worked out. For this section here, did you put in your
external address for the loginserver?



<!-- Loginserver information. Defaults shown -->
<loginserver>
<host>127.0.0.1</host>
<port>5998</port>
<account>Admin</account>
<password>Password</password>
</loginserver>

jdoran 09-20-2014 03:22 PM

Feel free to ask all the questions you need. Answering others' questions is more fun that beating my head against the wall on stuff getting LUA to build.

I used an internal address for the loginserver. No account or password though -- I left them empty. I used port 5999 (Underfoot client here).

GreenMerope 09-20-2014 03:26 PM

Well I used the external for the loginserver as well. Maybe I'm passing some packets around too much here at this point. But IT IS WORKING NOW!

Thank you for your help! I spent way too much time trying to figure out what I did wrong on the router.

jdoran 09-20-2014 03:29 PM

Glad to hear that it is working.

(You wouldn't happen to have compiled lua on your system would you?)

GreenMerope 09-20-2014 04:04 PM

Sorry I was exploring new server with a friend, testing, etc.

No I haven't I'm sorry :( I used the guide and the only thing I had to compile was the eqemu binaries.

jdoran 09-20-2014 04:08 PM

I was referring to the luabind stuff shipped with eqemu. I wonder if there is a version problem.

GreenMerope 09-20-2014 04:45 PM

I don't know. I just installed yesterday and so far I haven't run into issues with it. You'll have to pardon my ignorance but I honestly know knowing. I've used LUA only a little before: to program a mod for another video game.


All times are GMT -4. The time now is 05:24 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.