Raised This Month: $51 Target: $400
 12% 

How to check server ip/port


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-21-2013 , 11:49   Re: How to check server ip/port
Reply With Quote #11

The IP that HLDS gets bound to cannot be changed while the server is in operation. So, I don't get how obtaining the IP from HLDS will break your system.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-21-2013 , 11:54   Re: How to check server ip/port
Reply With Quote #12

Quote:
Originally Posted by YamiKaitou View Post
I don't get how obtaining the IP from HLDS will break your system.
Still wondering .. Btw Either you are hiding something or may be i am not able to understand.. Nvm..

You can try Hardcoding IP,IP class or series ,Hostname ,Net address .. All at once.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 08-21-2013 , 12:13   Re: How to check server ip/port
Reply With Quote #13

Quote:
Originally Posted by YamiKaitou View Post
The IP that HLDS gets bound to cannot be changed while the server is in operation. So, I don't get how obtaining the IP from HLDS will break your system.
net_address && ip && port - simple cvars and can be changed like all others.

Well let's said it's ideal situation, but the server connected to internet via NAT. It's net_address is 192.168.1.2:27015. Help me please to get it's real direct IP.

Last edited by Mofforg; 08-21-2013 at 12:14.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-21-2013 , 12:26   Re: How to check server ip/port
Reply With Quote #14

Quote:
Originally Posted by Mofforg View Post
net_address && ip && port - simple cvars and can be changed like all others.
Have you tested this?

Quote:
Well let's said it's ideal situation, but the server connected to internet via NAT. It's net_address is 192.168.1.2:27015. Help me please to get it's real direct IP.
So find a website or create a website that will display ONLY the HTTP variable REMOTE_ADDR. Then read that page using sockets
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 08-21-2013 at 12:26.
YamiKaitou is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-21-2013 , 12:33   Re: How to check server ip/port
Reply With Quote #15

Man, if you are admin from server and do not change, i not see a valid reason to not user net_address..
Other, changed or not, it will use a address used for connect to server...

Same thing for ip and port command from hlds. but net_address get the complete address and a same showed n status command from client and server.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 08-21-2013 , 13:19   Re: How to check server ip/port
Reply With Quote #16

Quote:
Originally Posted by ^SmileY View Post
Man, if you are admin from server and do not change, i not see a valid reason to not user net_address..
Other, changed or not, it will use a address used for connect to server...

Same thing for ip and port command from hlds. but net_address get the complete address and a same showed n status command from client and server.
Again.

Server connected via NAT. It's net_address is 192.168.1.2:27015. I can not use net_address to determinate real IP.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-21-2013 , 21:45   Re: How to check server ip/port
Reply With Quote #17

Quote:
Originally Posted by Mofforg View Post
Again.

Server connected via NAT. It's net_address is 192.168.1.2:27015. I can not use net_address to determinate real IP.
Why do you keep ignoring Yami's solution (Post 14)?
__________________

Last edited by fysiks; 08-21-2013 at 21:46.
fysiks is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-21-2013 , 22:22   Re: How to check server ip/port
Reply With Quote #18

Quote:
Originally Posted by Mofforg View Post
Again.

Server connected via NAT. It's net_address is 192.168.1.2:27015. I can not use net_address to determinate real IP.
Wrong, specify ip and port using a launch startup line.
If you do not have access to this, ask to you provider to fix.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Smatify
Senior Member
Join Date: Nov 2012
Location: Where ever you want
Old 08-22-2013 , 09:36   AW: Re: How to check server ip/port
Reply With Quote #19

Quote:
Originally Posted by ^SmileY View Post
Wrong, specify ip and port using a launch startup line.
If you do not have access to this, ask to you provider to fix.
Try to change "net_address" in the HLSW console...the ip is changing, but only in this cvar.
__________________
Selling Hosting stuff such as Webspace and Game- & VoiceServer

I'm also selling Steam Keys.
For more informations, contact me.

(Homepage is under development)
Smatify is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-22-2013 , 10:02   Re: AW: Re: How to check server ip/port
Reply With Quote #20

Quote:
Originally Posted by Smatify View Post
Try to change "net_address" in the HLSW console...the ip is changing, but only in this cvar.
I not sure about change net_address using a command, because i think the players connect using this address... It is better to change in hlds_startup line...

I have a vps and on there, i used ip and port paramters to players connect...
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 13:44.


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