Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: What is my IP address?

by Abigail-II (Bishop)
on Apr 25, 2003 at 09:54 UTC ( [id://253116]=note: print w/replies, xml ) Need Help??


in reply to What is my IP address?

Well, I think it should be pointed out that machines do not have IP addresses. interfaces have IP addresses, and often more than one - and not necessarely unique. My home box for instance has 2 ethernet cards, but 4 interfaces, each with a different IP address (the interfaces are lo, eth0, eth1 and ppp0, with the IP addresses 127.0.0.1, 10.0.0.15, 192.168.0.1 and 213.84.146.74). Well, in fact there are 6 interfaces, but two of them don't have an IP address.

If you want something portable, your best chance is probably to just return 127.0.0.1.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found