zaidww (07-29-2013)
Hello, well because i made some 'terrible' mistake to put extenral URL i had the post removed, so the question is simple, how to get client ip address in teknomw3 1.4.382, or if anyone know the mem offsets for that.
Thanks.
zaidww (07-29-2013)
Are you talking about Client Sided or Host Sided?
Host sided, the idea is to use a plugin for nukem server addon to get the IP from clients, as version compatible with teknomw3 does not have this feature. I use a plugin from another forum that get the IP from memory but when i use it in my server it returns zeroes so the only question is to know the correct memory offsets for the IP of clients in teknomw3.
Thanks
It'd be easier to do it yourself:
Get ~2-3 people.
Join the server.
Do a text search (Or byte-search) for their IPs
Find the difference in between them
Get the base (Player ID = 0)
Then for each player, loop through them and multiply the difference by the client ID.
There, some pseudocode to help you along.Code:DWORD BaseOffset = 0x400000, Difference = 0x7FFF; DWORD PlayerIPOffset[ 18 ]; for( int i=0; i<18; i++) { if( Player[i]->IsValid ) PlayerIPOffset[ i ] = BaseOffset + ( i * Difference ); }
To do the text search can i use cheatengine right? the memory offsets would be the same even if i run the server through wine? I suppose so but im not sure.
Thanks
The offsets can also be stored as an integer:
127.0.0.1-> 7F + 00 + 00 + 01
=> 7F000001 = 2130706433(In decimal)
Exactly on the host side, you will need the offsets, i was looking for those for a while xD