Discussion:
client ip address
(too old to reply)
Ramon Niese
2007-01-26 14:41:51 UTC
Permalink
Hi,

I need to use the client ip from the terminal in a script. How can I
retrieve this client ip?
I see some tools such as gettscip but that isn't what I want to use. Is
there a way to retrieve this via scripting?

Ramon
Bernhard Schmidt
2007-02-03 12:18:52 UTC
Permalink
Post by Ramon Niese
Hi,
I need to use the client ip from the terminal in a script. How can I
retrieve this client ip?
I see some tools such as gettscip but that isn't what I want to use. Is
there a way to retrieve this via scripting?
Ramon
Hi Ramon,

there's an environment variable called "CLIENTNAME" containing the
computer name of your client pc, shouldn't be a problem to address your
client this way, if you really need the ip address resolving can be done
with the common tools

regards,

bernhard

Loading...