Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 09:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Any way to connect via Localhost?

Discussion on Any way to connect via Localhost? within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2007
Posts: 206
Received Thanks: 25
Any way to connect via Localhost?

anyone know a way?

need it for some tests
Beitarist is offline  
Old 10/05/2008, 23:44   #2
 
elite*gold: 0
Join Date: Jan 2008
Posts: 388
Received Thanks: 45
on your own server?
Power_Stunner is offline  
Old 10/06/2008, 09:38   #3
 
elite*gold: 0
Join Date: Mar 2007
Posts: 206
Received Thanks: 25
Quote:
Originally Posted by Power_Stunner View Post
on your own server?
lol on hanin ><
Beitarist is offline  
Old 10/06/2008, 10:46   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 62
Received Thanks: 7
hack the root (hanin).
intall kal online there.
start the luncher.
be happy^^
Kool_Savage is offline  
Old 10/06/2008, 11:29   #5
 
elite*gold: 0
Join Date: Mar 2007
Posts: 206
Received Thanks: 25
i cant belive i expected to get answer in this noob forum ><
Beitarist is offline  
Old 10/06/2008, 11:31   #6
 
Alfonzo's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 413
Received Thanks: 40
how u want connect to hanin as localhost?cO
u have to host the server to connect as localhost
Alfonzo is offline  
Old 10/06/2008, 12:11   #7
 
elite*gold: 0
Join Date: Mar 2007
Posts: 206
Received Thanks: 25
Quote:
Originally Posted by Alfonzo View Post
how u want connect to hanin as localhost?cO
u have to host the server to connect as localhost
some project test...
anyways thats the only thing i need

what i mean is that insted login to server ip i connect to localhost
example insted login Bango i will connect localhost
Beitarist is offline  
Old 10/06/2008, 12:37   #8
 
elite*gold: 0
Join Date: Sep 2007
Posts: 35
Received Thanks: 3
You can inject a DLL that intercepts WSAConnect from Ws2_32.dll
and modify the pSockAddr->sin_addr param to connect to your localhost rather than the kal server.
This is how I've done it to connect to a local python script which acts as a proxy between kal and the server.

**edit**
to clear up what i mean by pSockAddr->sin_addr

the second param to WSAConnect is of type 'const struct sockaddr*', cast this to 'sockaddr_in*' to access the field sin_addr
ChocoDuo is offline  
Old 10/06/2008, 13:47   #9
 
elite*gold: 0
Join Date: Mar 2007
Posts: 206
Received Thanks: 25
Quote:
Originally Posted by ChocoDuo View Post
**edit**
to clear up what i mean by pSockAddr->sin_addr

the second param to WSAConnect is of type 'const struct sockaddr*', cast this to 'sockaddr_in*' to access the field sin_addr
i cant understand ur clear up :P
i will try to understand it when i back from work

but thx if it work ^^
Beitarist is offline  
Old 10/06/2008, 15:05   #10
 
elite*gold: 0
Join Date: Sep 2007
Posts: 61
Received Thanks: 7
only make fake dsn in your pc ;> and change to localhost (Network config.)
BenKiu is offline  
Old 10/06/2008, 16:33   #11
 
elite*gold: 0
Join Date: Sep 2007
Posts: 35
Received Thanks: 3
dsn is a dns typo? I'm not sure if this would work as kal attempts to connect directly to an IP, wont this will bypass any local DNS as the ip has already been resolved? (no idea about this though, never done something like this =)

Regarding my method, I'll try clear it up more.
WSAConnect has the following (C) prototype:

int WINAPI WSAConnect(SOCKET s, const struct sockaddr* name, int namelen, LPWSABUF lpCallerData, LPWSABUF lpCalleeData, LPQOS lpSQOS, LPQOS lpGQOS)
(from the win sdk)

the pararm 'name' contains connection information specific to the the socket type.
The socket type used in this case is AF_INET (internet) so we can cast 'name' from sockaddr* to the sockaddr_in* to access connection info specific to AF_INET connections i.e. IP and port.

And so, through the horrible syntax necessary to set the bytes of the ip address you can do this:
Code:
sockaddr_in* pSockAddr = (sockaddr_in*)name;
pSockAddr->sin_addr.S_un.S_un_b.s_b1 = 127;
pSockAddr->sin_addr.S_un.S_un_b.s_b2 = 0;
pSockAddr->sin_addr.S_un.S_un_b.s_b3 = 0;
pSockAddr->sin_addr.S_un.S_un_b.s_b4 = 1;
and then pass on the parameters to the original WSAConnect function ^^
ChocoDuo is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Localhost
05/24/2010 - Metin2 Private Server - 5 Replies
Hi...habe alles fertig doch wenn ich auf dem surabild unten rechts auf button klicke kommt der fehler : LoadLocaleError(locale/hongkong/locale_game.txt) Kann mir Pls jemand helfen ??? :handsdown::handsdown::handsdown::handsdown:
2003-Can´t Connect to MySQL server on localhost (10061)
02/07/2010 - Flyff Private Server - 4 Replies
Huhu, Wie ihr seht: "2003-Can´t Connect to MySQL server on localhost (10061)" kommt dies ständig bei mir nachdem ich bei navicat eine neue Connection erstellt habe.Ich weiß nicht wie ich das Proplem beheben kann.Kann mir vllt wer helfen? Mfg DerStarke
Can't connect to MySQL server on "localhost" (10061)
11/16/2009 - CO2 Private Server - 2 Replies
I got this error when trying to connect to Mysql in navicat :S I could always connect no problem. Is anyone else having this problem? xD
Help PlayerSQL.Connect(localhost mt2 mt2!@# player)
11/06/2009 - Metin2 Private Server - 3 Replies
pls help me! i started en dedicated server freebsd but i have error! PlayerSQL.Connect(localhost mt2 mt2!@# player) how to risolving ? plss help me english or italian lenguage pls!



All times are GMT +2. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.