From: Erik Naggum

Subject: Re: IP addresses

Date: 1999-6-22 13:51

* Tom Widland
| Is there an introspective way to get the ip address of the computer
| running my ACL program, in either Unix or Windows?

  there is no such thing as _the_ IP address of a host.  all hosts answer
  to the address 127.0.0.1, but that doesn't do you much good if you want
  to talk to other hosts.  the best bet is to connect to the host you want
  to talk to and see what the local-host will be.  if you have a small
  number of possible addresses, use the :LOCAL-HOST argument to create
  passive sockets and the one that doesn't cause an error is you.  if you
  have a host with multiple interfaces (a so-called "multi-homed host"),
  you will have more than two addresses, too.  e.g., a router, which has as
  many addresses as it has networks it's on.
  
  what do you need the address for?

#:Erik