I must have missed something, when I do this:
set theClient [socket localhost 80]
set myIP [fconfigure $theClient -sockname]
"myIP" is the host ip address.
I have a need to be able to determine my IP address on unix. When you login, the environment variable DISPLAY is set to "my" IP address. But, when you “rlogin”, “telnet”, etc, to another box, the DISPLAY variable is not set. I have investigated several commands including “netstat” and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.