PDA

View Full Version : How to get the server's IP and port information ?


lovetide
07-11-2005, 08:41
If a module is loaded, how it get this server's IP and the port the server is listening :?:
I want to use these two parameter to identify a server.

Thank you!

nightscreem
07-11-2005, 09:03
i think type status in console

lovetide
07-11-2005, 09:28
i think type status in console

:P
but how to get it in source code ?

nightscreem
07-11-2005, 10:31
sry don't know
i can't code c++ only small

johnjg75
07-11-2005, 10:35
sry don't know
i can't code c++ only smallthey're very similar :roll:

BAILOPAN
07-11-2005, 10:46
You can't. You can get the cvar values for ip and port but it only works if they were set in the server command line (+ip, +port).

twistedeuphoria
07-11-2005, 11:16
You can try get_user_ip(0 etc but you may get a LAN IP.

PM
07-11-2005, 12:14
sry don't know
i can't code c++ only smallthey're very similar :roll:

Uhh.. They're pretty different, C++ being the much more advanced one ;)