Can't connect

Junior Spellweaver
Joined
Nov 18, 2006
Messages
176
Reaction score
0
I always get something wrong whenever I go to do a server. In this case just a local one :P

I think the problem is my SQL.dll. Everytime I edit it it gives me an immediate unable to connect. When I don't edit it, when I don't type in my ID and PW, it says "Invalid account name". On the other hand, when I do type in my ID and PW it waits for a couple seconds then gives me unable to connect. I edited hotuk, ldata, ptreg.rgx and my Registry all to 127.0.0.1. Opened port 10009 and changed it in the client to 1927. Added at the end of the client 127.0.0.1. On the server client I did not add 127.0.0.1 I did not think it was needed. Made an account manually I'm pretty sure I got that right :P

Hope I can get some help, just wanted to do some testing locally instead of on the main server. Thanks guys.
 
Otherone i think, look at the tuts. I think the guide for REAL n00bs is good cause it explains stuff unlike the others.
 
Yea I did do the ODBC under the other one. This isn't my server it is my brothers friend I am trying to help. I went through hotuk, ldata, ptreg.rgx and registry. The only thing I can't change is sql.dll because everytime I do I get immediate unable to connect.

Port 1433 for what?
 
Have you tried the last ditch attempt of deleting / moving / renaming sql.dll

My server doesn't have one at all, and I get disconnect if I ever use one. It's another reason I don't bother with clans... which is when sql.dll is really needed I think.
 
if you will use sql.dll is cuz u dont want to use ODBC, and if u want to have clans aswell, so i dont are not bothered to have clans, jsut delete the sql and clan.dll, so enable the ODBC (u can check that in every guide in the stick threats) else, u should still fight with ur configuration to have ur server and clans working with that dlls.
 
You can use ODBC and clans right Soy? Or is setting up ODBC just a waste of time if you are using sql.dll and clan.dll?

I don't really understand them, never got them to work, and they aren't declared by the Server.exe, so I don't really know what use they can be, unless they are delay loaded, and it falls back to direct ODBC if they're not found.

I've seen many copies of these dlls with different server repacks that seem to be completely different files... from a different source. And I even wondered if writing custom versions would allow use of other SQL servers / databases than MS SQL?

Has anyone ever seen source code for these libraries? Because modifying the strings before you compile the dlls would be nicer than Hexing the binaries.
 
u can have clans working with odbc but with more problems than solutions.
With sql.dll and clan.dll you dont need odbc at all (not even to log in game)
 
Well then he is still having trouble connecting..So I delete sql.dll and ODBC is all configured.

He is still unable to connect...I'm not sure where to go from here..

Also is it Idata or Ldata?
 
it is ldata
well, then, you should check if ur game.exe have the ip inside of it or it will use external configuration, try to hex ur game.exe and look for an ip inside (almost allways is at the end of the file) and change for ur ip. You said you added the ip into the game exe but u cant jsut add the ip, you need to remfplace the old ip with ur new, if there isnt ip in the game.exe you cant add it (well u can if you know how to do that with olliedbg).
 
I replaced the one that was already there is what I meant..I replaced it with 127.0.0.1 for a local server because my friends IP isnt stable it keeps changing..I'm supposed to set it to 127.0.0.1 anyways for a local server anyways right?
 
local server (lan net) 127.0.0.1 is for a local server, only ur pc, for a lan server use ur lan ip (from the tcp/ip)
 
I'd have been checking with for connected ports and IP (Real! Not just what you think you configured) some time ago...

If that looks right and the connection still isn't being made, then there has to be something firewalling, either on the PC, or on the Router / LAN control somewhere.

From cmd.exe you can type "ipconfig" to find out what IP you have on your LAN... it should start 192.168.x.x unless you are connecting to the internet direct with no local DHCP... that, would not be good.
 
Last edited:
Yea I did the cmd.exe thing and I opened the 10009 port and put 1927 into my game.exe. That is what I'm supposed to do correct? Or is it different when you do a local server?
 
Well... whether you need to open ports locally or outside is a matter of your router security... If you only have a hub to connect your server and client systems, then there will be no security... not dhcp... etc. A top corporate router will allow you to set access control lists for VLans and even per MAC.

I've seen "Home" routers that have LAN port blocking, but it isn't common. After all, you usually trust all the PCs in your own home, it's the big bad world outside you need to close the windows and door on. :wink:

I have no idea what you mean by "the 1927 thing".

If your client has the server IP encoded in it, you will need to write over it with either the IP of your server on your LAN, or 127.0.0.1 if your server and client are running on the same machine. 192.168.something.something are the usual LAN addresses because 192.168 are reserved against a 255.255.0.0 hostmask for local addresses. This means they aren't used on the internet, so they won't conflict.

127.0.0.1 is reserved as "localhost" and that "domain" is valid on almost any system as the loopback... so from a web browser "http://127.0.0.1:80/" and "http://localhost/" are equivalent... (the same) just as "http://www.google.com/" and "http://75.125.45.100:80/" are equivalent. (":80" is the port number, and your browser will probably remove it, but www. usually points to a port 80 only sub-domain)

If you client (game.exe) doesn't have the IP of the server encoded in it then it will find it in either "ptreg.rgx" "hotuk.ini" (very rare, but most can still look there if you like) your system registry or IData.bmp (I've never seen that one used).

The biggest reason for the multiple locations of the IP is that lots of people think that hiding the IP will make their server safer. I think any hacker worth his salt could trace the network activity on their own PC... but that's just MHO.

Other than changing the IP when it's encoded in the game.exe I've never had to make any modification to get it to log on. There are some clients that are just not compatible with some servers however. Either because they are set to work on a different port (10009 is most common but some use 10007 and can be set to use any port, but you're gonna use one over 4000 right? :wink:) or because they are hard written to use different encryption method.

If you are using the client that came with your server (most do, some don't) then none of that applies.

You have followed all of HappyHardcores' advise on the Resources and Files Thread I presume? ^_^
 
Yea I followed everything..But I was just accessing my brothers friends computer (the one with the local server) and I noticed when he tried to run the server the monster count was at 0. This may be the problem..My mind is going blank right now and I can't think of the solution..

And 1927 is the port 10009...Which is the one I opened. And I changed the IP at the bottom of the game.exe but not the server.exe. Is there one needed in the server.exe?
 
Back