AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_ip, remote port? (https://forums.alliedmods.net/showthread.php?t=63300)

sskillz 11-17-2007 10:50

get_user_ip, remote port?
 
Hello,
I was wondering which port does get_user_ip return?
The one used by the client or the one used by the server?

Thanks.

Alka 11-17-2007 11:41

Re: get_user_ip, remote port?
 
make a little plugin...

Code:

new Ip[32], Temp[2][32];
get_user_ip(id, Ip, sizeof Ip - 1, 0);
 
strtok(Ip, Temp[0], sizeof Temp[] - 1, Temp[1], sizeof Temp[] - 1, ':', 0);
 
client_print(id, print_chat, "Your IP : %s | Port: %s", Temp[0], Temp[1]);

register a clcmd then call it and you will see what port return the native.

sskillz 11-17-2007 14:27

Re: get_user_ip, remote port?
 
Yea, it should be the remote port on the client,
Thanks ill try it and find out if its correct I was a bit lazy :X

ConnorMcLeod 11-17-2007 15:05

Re: get_user_ip, remote port?
 
client


All times are GMT -4. The time now is 01:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.