Does anyone have a good portable method of
finding the IP address of the system you are on besides
running ifconfig or ipconfig against a regex?
Sys::Hostname doesn't seem to be accurate on any of the boxes
I've tested on. Since the machines will be in a DHCP environment
where I have no control over DNS, it's rather tricky. I would
think that if you have a socket open, and you are sending and
recieving data, that there would be an easy method of determining
the IP address you were using.
If I have to use a regex, I suppose that I can but I want to make
this as bullet proof as possible.