Raised This Month: $ Target: $400
 0% 

get_user_ip, remote port?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sskillz
Member
Join Date: Apr 2005
Old 11-17-2007 , 10:50   get_user_ip, remote port?
Reply With Quote #1

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.
sskillz is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-17-2007 , 11:41   Re: get_user_ip, remote port?
Reply With Quote #2

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.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
sskillz
Member
Join Date: Apr 2005
Old 11-17-2007 , 14:27   Re: get_user_ip, remote port?
Reply With Quote #3

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
sskillz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-17-2007 , 15:05   Re: get_user_ip, remote port?
Reply With Quote #4

client
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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