ms_ip domain->IP script?

Ranz0r

New Adventurer
Joined
Aug 16, 2005
Messages
15
Reaction score
0
Do you know any script, that can get everytime when a server is started the IP (for example with a ping to ranz0r.dyndns.org) from a domain and save it in any configfile (autoexec.cfg or listenserver.cfg)?
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Err... Are you saying you want a log of IP's that come onto your server? I'm not sure what you want here.
_________________
“There is no such thing, at this date of the world’s history, as an independent press. You know it and I know it. We are the tools and vassals of the rich men behind the scenes. We are the jumping jacks, they pull the strings and we dance. Our talents, our possibilities and our lives are all the property of other men. " - John Swinton, New York Times editor
Saint Thoth
 

Ranz0r

New Adventurer
Joined
Aug 16, 2005
Messages
15
Reaction score
0
No

No, i only dont want to edit the ms_ip manually everytime the server is started. I am asking for a script, which pings my DynamicDNS Server and writes the IP automatically in my autoexec.cfg or something.


Because ranz0r.dyndns.org is on every internetconnect updated to my new IP.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
It *might* be possible to grab your actual IP via IPConfig and write up a batch file to append it to your server.cfg with the proper "ms_ip" to compensate for a dynamic IP. A script, however, is straight out. Even if there was a cvar that held your true IP, there's no way to pass variables from one to another in Half-Life console script.

Hopefully MS:C will do this little trick automagically, and thus you wont need the ms_ip cvar.
_________________
"It don't help to be one of the chosen
One of the few, to be sure
When the wheels are spinning around
And the ground is frozen through" - Eldritch

Saint Thoth
 

Ranz0r

New Adventurer
Joined
Aug 16, 2005
Messages
15
Reaction score
0
Oh sry, i have the script already working :)
If you need it, i will make it public
 
Top