Getting server IP..
I was trying
get_cvar_string("ip",output,len) That just returns localhost.. So, how to get the servers ip? |
Were you testing it on a LAN by chance?
|
try
Code:
|
No, it's not on LAN.
suicid3. Here is my code. Code:
IP: :1337 |
Use get_localinfo("net_address",.....)
|
I solved this problem by removing the port.
get_cvar_string("net_address",serverip,20) and using strings to input that into the HUD message. :) Thanks suicid3. |
confused
wait im not as smart as u guys.
how do i get. my server ip. and how do i keep. the ip from not. changing??.. |
Umm if your talking about a dedicated server on your comp this isnt what you need. But there is no way to keep a static IP when you have a dynamic IP.
One exception: Sometimes with a router your IP wont change because there is a constant connection. However if you turn your router off or it gets unplugged your IP should change. |
haha well.
with me. my server changes ip. i got a router. the beg of the ip dosent change. but the ending does like after the : sometimes it dont matter. but sometimes ppl cant. get on it |
i've been looking for a script to check the internal and external Ip of my hosted game server any one have a script made that can do this made yet ?
|
| All times are GMT -4. The time now is 14:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.