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

Re: Finding your IP



on Mon, Jul 30, 2001 at 08:51:20PM -0700, Karsten M. Self (kmself@ix.netcom.com) wrote:
> on Mon, Jul 30, 2001 at 04:47:29PM -0400, JakeCatfox@aol.com (JakeCatfox@aol.com) wrote:

Wups.  That was copied from my OpenBSD box.  You'll want to use 'ppp0'
(or other PPP device), not 'tun0', the oBSD interface:

     $ cat <<EOF > get-ip
     /sbin/ifconfig ppp0 2>/dev/null | grep inet | awk '{ print $2 }'
     EOF
     $ chmod +x get-ip
     $ ./get-ip

-- 
Karsten M. Self <kmself@ix.netcom.com>      http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?         There is no K5 cabal
  http://gestalt-system.sourceforge.net/           http://www.kuro5hin.org
Free Dmitry!! Boycott Adobe!! Repeal the DMCA!!  http://www.freedmitry.org

Attachment: pgp7Mbojm1Jq2.pgp
Description: PGP signature


Reply to: