-
Can't connect
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.
-
Re: Can't connect
Are you using version windows ?
-
Re: Can't connect
-
Re: Can't connect
you have create ur ODBC connection?
-
Re: Can't connect
Yea..But do you create it through Windows NT authentication? Or the other one..
-
Re: Can't connect
Otherone i think, look at the tuts. I think the guide for REAL n00bs is good cause it explains stuff unlike the others.
-
Re: Can't connect
Windows XP 32bit or 64 bit? You have check it in registry ?. And telnet to port 1433 to test?
-
Re: Can't connect
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?
-
Re: Can't connect
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.
-
Re: Can't connect
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.
-
Re: Can't connect
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.
-
Re: Can't connect
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)
-
Re: Can't connect
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?
-
Re: Can't connect
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).
-
Re: Can't connect
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?
-
Re: Can't connect
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)
-
Re: Can't connect
I'd have been checking with TCPView 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.
-
Re: Can't connect
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?
-
Re: Can't connect
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? ^_^
-
Re: Can't connect
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?
-
Re: Can't connect
No, the server gets its IP from it's hotuk.ini , it's never embedded there. (to my knowledge)
The first time I ran my server for the first time, I think it did have 0 monsters... They are spawned when the player first enters the field... the more players are in the field, the more monsters the server has... and as they log out the number reduces, but after the initial player entry, it never goes back down to 0 again.
The IP the server needs are the one it sends to the client about where the actual game server is (usually the same, but if you have more than one game server running, like official servers, you could have a one login server and several game servers) and there are options for pointing to a separate data server (IIRC) so you could have the SQL server on a different box.
I don't think anyone here uses any of those options, and if they did they probably wouldn't tell us how it works out. It's more complication than you need when you're just trying to get the thing up and running.:ott1:
I don't think you should have to hex the port number into your client unless the client (or maybe server) you are using is from a strange source that uses and unusual port. If that is the case, who knows what kind of encryption they use.
If your server is one of the standard releases here, then I highly recommend using Quantumfusions 1873 client. That uses the IP hexed at the end of the file method... and use that client, and do the hexing the IP, then you don't need to worry about IData.bmp, ptreg.rgx or the system registry. It is already set to port 10009, and needs no other information.
I couldn't connect for a couple of weeks when I first set up, through misconfigured ODBC and duff sql.dlls, and what solved everything for me, was getting ODBC right, and dumping sql.dll in the trash can. lol But if I ever do clans, I know I will have to find (or make) a good one.
-
Re: Can't connect
Alright thanks for all the help. He is using Quantum Fusion 1873 btw.
I just don't know what is wrong I guess I'll go through ODBC and stuff again, look through it all. But again, thanks
-
Re: Can't connect
My bad posted twice >.< thought I didn't hit enter before I left