Exists some perl-module to find out the ip-adress of a windows-pc on
which a perl/tk-programm (as an executable) is running ?
TIA
Pit
What do you mean by "own ip address"? On every host there
might exist different network devices with different ip addresses.
One way might be: Sys::Hostname to get the own hostname and then
Use Socket;
$packed_ip = gethostbyname($hostname);
Oliver
Agree. And for external IP it could be some NAT that confuses all
local calculations. (Offtopic?)
I mean the ip-address of a pc as a client in a network (such like the
output of ipconfig in the dos-console)
Pit
thanks all. it works fine
Pit