EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Unable to Connect Offline / LAN currently (https://www.eqemulator.org/forums/showthread.php?t=42461)

Michelle-Bishop 05-22-2019 06:39 AM

Unable to Connect Offline / LAN currently
 
Hi folks.

Hmm, well I'm not really sure what is going on now. I of course had EQ running fine with multiple clients on a private server of my own with the help of a few of you here, but ever since I moved, I don't seem to be able to connect.


I rolled back my computer to a time it was functioning after some auto-Windows updates.

I was able to run the server off this very same laptop and connect just fine even after turning my Wifi off.

As of now, when I open CMD prompt and type ipconfig /all - nothing shows up when I am not connected to the internet. When I am however, I am shown an IP address. Anywho, here's what it looks like.


Code:

Windows IP Configuration


Ethernet adapter Ethernet:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . :

Ethernet adapter Ethernet 2:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 9:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 10:

  Media State . . . . . . . . . . . : Media disconnected
  Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

  Connection-specific DNS Suffix  . :
  Link-local IPv6 Address . . . . . : fe80::6955:ab1c:820e:d91e%11
  IPv4 Address. . . . . . . . . . . : 192.168.1.68
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 192.168.1.1

That is when it is connected to the internet here, via my Wifi as you can see. Otherwise, if I am not connected, not even that last part shows up, seems it's off. Though for some reason, I was able to connect just fine previously when turning my Wifi off (I have only ever used Wifi).


Now, the last time people here helped me, here's what my configs looked like and IP addresses used - examples below.

Code:

dump_packets_out = FALSE
listen_port = 5998
local_network = 127.0.0.
auto_create_accounts = TRUE

Code:

    "server" : {
          "chatserver" : {
              "host" : "10.0.0.100",
              "port" : "7778"
          },
          "database" : {
              "db" : "peq",
              "host" : "127.0.0.1",
              "password" : "eqemu",
              "port" : "3306",
              "username" : "root"


And this is the EQhost file I was using as well.

Code:

[LoginServer]
Host=10.0.0.100:5998

Am I correct in assuming, that if I switch out the old IP address from 10.0.0.100 to my new one on my Wireless LAN address of 192.168.1.1 - I then would be able to connect? If so, wouldn't I run into the same issue once I am no longer connected to the internet?


I'm sure this is just a matter of changing some numbers around, but it's weird it was working before and not now.

Michelle-Bishop 05-22-2019 07:21 AM

Ok, as I assumed, I changed the 10.0.0.100 addresses to 192.168.1.68 address, and I am now able to log into the client and game like before.

However, I did delete a row (an account) like before that was not allowing me to log into an account before, and deleted my enchanter, which is fine; I can make a new one and edit the character or something. My other 2 accounts, seemed to have been rolled back from the last time I played. Went from lvl 19 back to 16 or so, which is fine. I believe it's because I turned my WIFI OFF after logging in, and closed the clients and it didn't save because otherwise the other times, I had my Wifi ON.

Okay weird. For a while there, I was unable to log in once I turned my WIFI completely off. I was able to see the server up, but kept getting locked out, client would freeze, and eventually say something about not being able to connect (not the 1017 error like before).

But now... everything is back to normal as I type this now, with my WIFI off. I am not connected to the internet right now, but I'm gonna flick it back on so I can post this reply and see what happens... uhg.

(EDIT) Hmm... okay. I don't know what the heck is going on, but it appears as though everything is working fine now. Regardless if I am connected to our internet here, or if I completely turn mine off, even opening CMD prompt to find the IP address and it shows no IP address at all seems I am not connected, I am now able to connect just fine as of now.



Only issue I am now concerned with I guess, is having my toons rolled back again. I bet it had to do with shutting things down improperly before. Now I gotta make a new enchanter and lvl/edit it or something to get her back to my other toons' level.


Anyone care to explain what the heck was going on here?

c0ncrete 05-22-2019 08:33 AM

it's likely a faulty configuration of the 'world' section of eqemu_config.json ('address' and 'localaddress' specifically). if you are playing from the same machine, i believe 127.0.0.1 should work for localaddress. that should also allow you to play locally with your wireless switched off.

Michelle-Bishop 05-30-2019 11:31 AM

I keep having this issue. Might have found out finally when it happens.


I am unable to connect to the server select screen when my Wifi is Off. Once I turn it on, and connect to our internet, I can then get past the login/password screen and connect. I thought I was able to play without having an active internet connection / Wifi Off.

Here's the config I am using now that is working when I have a connection live.
---

Code:

{
    "server" : {
          "chatserver" : {
              "host" : "192.168.1.68",
              "port" : "7778"
          },
          "database" : {
              "db" : "peq",
              "host" : "127.0.0.1",
              "password" : "eqemu",
              "port" : "3306",
              "username" : "root"
          },
          "directories" : {
              "logs" : "logs/",
              "lua_modules" : "lua_modules/",
              "maps" : "maps/",
              "patches" : "./",
              "plugins" : "plugins/",
              "quests" : "quests/",
              "shared_memory" : "shared/"
          },
          "mailserver" : {
              "host" : "192.168.1.68",
              "port" : "7778"
          },
          "qsdatabase" : {
              "db" : "peq",
              "host" : "127.0.0.1",
              "password" : "eqemu",
              "port" : "3306",
              "username" : "root"
          },
          "world" : {
              "http" : {
                    "enabled" : "false",
                    "mimefile" : "mime.types",
                    "port" : "9080"
              },
              "key" : "jSx0rDQnhBlY72zPJEABOErxZI1ZEBz",
              "localaddress" : "192.168.1.68",
              "locked" : "false",
              "loginserver" : {
        "account" : "",
        "host" : "192.168.1.68",
        "legacy" : "0",
        "password" : "",
        "port" : "5998"
 },
              "longname" : "Kera's Server",
              "shortname" : "keraserver",
              "tcp" : {
                    "ip" : "127.0.0.1",
                    "port" : "9000",
                    "telnet" : "disable"
              }
          },
          "zones" : {
              "defaultstatus" : "0",
              "ports" : {
                    "high" : "7400",
                    "low" : "7000"
              }
          }
    }
}



And again, now I can log in after I turned my wifi off like I thought I was doing before. I also shut my PC down and didn't touch my wifi and I was able to log in just fine. I don't understand why this is happening, or how to fix that. Once I am stuck with not being able to log in, I cannot log back into the game unless I connect back to our WIFI for some odd reason.

Huppy 05-30-2019 05:48 PM

To have a "LAN" (local area network) server and connect to that lan server from another puter (client or whatever), you need some way of connecting to it. Common choices: wifi or ethernet cable. Otherwise, all clients would have to be on the same puter as the server. (localhost).

c0ncrete 05-30-2019 08:27 PM

It's simple. If you turn off your WiFi, you are disabling the interface that has the IP address you are attempting to connect to, according to the configurations you have posted in this thread.

Michelle-Bishop 06-01-2019 08:21 AM

I don't know why I cannot connect still given the help here. I am running the client and server on this machine, my laptop. All 3 accounts I log in with this same machine.

The only way I can connect, is if I have an active connection, Start the server, then I can log in as normal, and I can even flick my wifi off and I am still able to connect until say, my laptop gets shutdown or it goes into sleep mode. Otherwise, my computer Wireless Lan card no longer registers an IP address with ipconfig /all.

I also notice, every time I am able to connect, I get an error in one of the consoles from the server:

[Login Server] New world server connection from 192.168.1.68:64519
[Error] Handle_NewLSInfo error, remote address was null, defaulting to stream address 192.168.1.68.
[World Server] Server Kera's Server(keraserver) did not attempt to log in but unregistered servers are allowed.
[Login Server] New Titanium client connection from 192.168.1.68:55213


Here's the config now:

Code:

{
    "server" : {
          "chatserver" : {
              "host" : "192.168.1.68",
              "port" : "7778"
          },
          "database" : {
              "db" : "peq",
              "host" : "127.0.0.1",
              "password" : "eqemu",
              "port" : "3306",
              "username" : "root"
          },
          "directories" : {
              "logs" : "logs/",
              "lua_modules" : "lua_modules/",
              "maps" : "maps/",
              "patches" : "./",
              "plugins" : "plugins/",
              "quests" : "quests/",
              "shared_memory" : "shared/"
          },
          "mailserver" : {
              "host" : "192.168.1.68",
              "port" : "7778"
          },
          "qsdatabase" : {
              "db" : "peq",
              "host" : "127.0.0.1",
              "password" : "eqemu",
              "port" : "3306",
              "username" : "root"
          },
          "world" : {
              "http" : {
                    "enabled" : "false",
                    "mimefile" : "mime.types",
                    "port" : "9080"
              },
              "key" : "jSx0rDQnhBlY72zPJEABOErxZI1ZEBz",
              "localaddress" : "127.0.0.1",
              "locked" : "false",
              "loginserver" : {
        "account" : "",
        "host" : "192.168.1.68",
        "legacy" : "0",
        "password" : "",
        "port" : "5998"
 },
              "longname" : "Kera's Server",
              "shortname" : "keraserver",
              "tcp" : {
                    "ip" : "127.0.0.1",
                    "port" : "9000",
                    "telnet" : "disable"
              }
          },
          "zones" : {
              "defaultstatus" : "0",
              "ports" : {
                    "high" : "7400",
                    "low" : "7000"
              }
          }
    }
}


c0ncrete 06-01-2019 11:03 AM

if all clients are connecting from the machine running the server, change all of your IP addresses in your config to 127.0.0.1 and you should have no further issues.

Uleat 06-01-2019 05:27 PM

Link to a post where I shared my 'localhost' configs: http://www.eqemulator.org/forums/sho...30&postcount=3

One is for the login server..the other, main server configurations.


All times are GMT -4. The time now is 08:27 PM.

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