Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

finding my ip address using finger, awk and ping

25 views
Skip to first unread message

John Battle

unread,
Nov 15, 2008, 1:39:26 AM11/15/08
to
I have seen people use finger (or who) to get their own user name and
then ping it to find their IP address as seen by a computer on the other
side of a VPN. They used awk to filter it on the command line somehow.
Anybody know how to do that? I want to make a better way to get my ip
address as seen by a unix machine on the other side of a VPN, so I can
automate the process of exporting the display.

--
John Battle

Nico Kadel-Garcia

unread,
Nov 15, 2008, 12:10:49 PM11/15/08
to John Battle

Why not simply install SSH and run 'ssh -X' to connect to the SCO box and have
X windows displayed locally, and install and use VNC if necessary to share
displays with others?

Even simply logging in with SSH gets you 'SSH_CLIENT' and 'SSH_CONNECTION' as
environment variables you can use.

Bill Campbell

unread,
Nov 15, 2008, 3:03:17 AM11/15/08
to sco-pro...@lists.celestial.com

I have a form on our web site that will show you this:

http://www.celestial.com/showinfo_form

If you are logged into the remote machine with ssh it's easy, use
the command ``echo $SSH_CLIENT''. On the other hand, if you're
using ssh, you don't need to mess with the $DISPLAY as you can
use ssh X11 forwarding, which is (a) far easier than dealing with
$DISPLAY and xhosts, and (b) secure.

Bill
--
INTERNET: bi...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186

War is the health of the state. -- Ralph Bourne

0 new messages