[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to determine local IP



John Hasler wrote:
> 
> Ramesh Natarajan writes:
> > Hi, Once dialed in, how to determine the local (dynamically assigned) IP
> > id? I know pppd invokes ip-up with the local IP. But outside that, is
> > there a env variable, API or a file that holds returns this info?
> 
> Put a script in /etc/ppp/ip-up.d to write the IP to a file.

ifconfig does it for me.

--brock

---------------------  PGP key ID: FED76A3D <brock@cyberdude.com> 4 / 5 / 1999

   __ _    Debian GNU           R. Brock Lynn <brock@nettronix.net>
  / /(_)_ __  _   ___  __   http://www.debian.org/ irc.openprojects.net
 / / | | '_ \| | | \ \/ /                  'Free Software'
/ /__| | | | | |_| |>  <   Remember that's "Free" as in Freedom, not "Free" as
\____/_|_| |_|\__,_/_/\_\   in price!   Debian's the Greatest!


Reply to: