Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, My job uses an IRC server, and we normally update our nick name based on our status, i.e. _office, _away, _home (working from home). I connect to it ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2

    Get my current local address when logged in via ssh

    Hello all,

    My job uses an IRC server, and we normally update our nick name based on our status, i.e. _office, _away, _home (working from home).

    I connect to it by ssh'ing to our office server, and use irssi to connect to the IRC.

    I already have a script so that when I detach from the screen running irssi, it sets my nick to _away .. but I want to enhance it.

    I know that the server somehow logs my local (home) IP address when I ssh, hence the "Last Login From ..." line. And using 'w' I can see the remote IPs of everyone logged in. But is there any way to access just MY current login IP in a parseable form?

    If it was possible, I would get that from within the irssi script and dynamically set my nick _office or _home, when I connect to the server from my office IP or my home IP.

    Hopefully I explained that enough, can anyone think of a command or resource for getting my current local IP address when connecting to a server with SSH?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2
    actually, thanks for reading, but I figured out

    who | grep <user>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •