how to make launcher client to make work your IP server?

05/06/2012 17:49 sutansah#1
any know how to make launcher client game to work your IP server?....its like reverse IP...if u have any tutor for that can u tell me?....im just want learning how to make it....

im use xnetstat to find IP game work to that server...and search that in game client.exe with hex editor and try to change that IP my server but it didnt work(im already have database server for it and active my server)..it says "could not connect the server"..and there are Ip that not shown in hex...how to find it?...its like we must make other launcher with dll to make that ip change with that Dll...so the game client can attach ur IP server to make it connect....

in client there are not configuration IP in data of client...its like that IP work together in client.exe...im try to use olly how to find that but i cant find...anyone know how to find module of IP and port in client game.exe with olly?....

thanks...:handsdown:
05/06/2012 19:18 Tyrar#2
set an breakpoint in "ws2_32.dll" or "wsock32.dll" on function connect.
you'll get 3 parameters to the function, param 2 is an pointer to an struct named "sockaddr_in"! ip offset=4, port offset=2
05/06/2012 20:24 sutansah#3
there are two module what u say....its like wsock32 and ws2_32....which one it contain the IP ? ...

in that Dll where should i put breakpoint of it...and where function in the game.exe...
im try to look in intermodular call there are ws2_32 and wsock32 work together...but i dont know where that contains IP send to server..

this example files of client.exe,launcher,and dll contains it....[Only registered and activated users can see links. Click Here To Register...]
05/07/2012 04:13 MoepMeep#4
Check connect or WSAConnect.
05/07/2012 12:32 sutansah#5
i have find it in ws2_32 connect in game.exe ...and now how to make .dll to inject that ws2_32 so it can connect to my server IP....
05/07/2012 14:09 MoepMeep#6
Hook it, change ip. You will find some examples on google if you don't know how to do it.
05/08/2012 11:08 sutansah#7
im just hook it with command jmp to module ws2_32#4 its a socket port...and push that and change that IP to login to my Ip...but its again could not connect...or just im have wrong to command to hook it....its like this...

send gethostname(IP to connet login server)
receive that connection
if success it will make to func login in client...
close connect
make func to connect to map(ip to connect map server)
send packet(gg auth if have gameguard nprotect)
receive packet if same can connect to map server
success connet and play and transfer data to Database func...

if im wrong...can u tell what its wrong of that method?...do u have referensi how to hook that ws2_32 to reverse that ip conect to another IP?...or if u can make it...can u look for that files im shared it...u can look how to make it connect?
05/08/2012 12:25 MoepMeep#8
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

Detour the right one, change ip, be happy.
05/09/2012 02:05 sutansah#9
thanks for that referensi MoepMeep...i will learn and study to make it connect...if anything wrong again...can me ask u again?...thanks:handsdown: