- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to obtain remote ip address without using DNS?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 11:25 PM
тАО11-15-2004 11:25 PM
How to obtain remote ip address without using DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 11:29 PM
тАО11-15-2004 11:29 PM
Re: How to obtain remote ip address without using DNS?
arp -a
Hope this helps.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 11:36 PM
тАО11-15-2004 11:36 PM
Re: How to obtain remote ip address without using DNS?
getip `who -mu | awk '{ print $8 }'`
You can use netstat -na | grep 'localserverip.23'
will give all ip-address login in the system.
You can also use last command to get login informations there with ip-address.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 11:46 PM
тАО11-15-2004 11:46 PM
Re: How to obtain remote ip address without using DNS?
I want to print only the remote ip address in the screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 01:55 AM
тАО11-16-2004 01:55 AM
Re: How to obtain remote ip address without using DNS?
Try "who -R" which gives the ip address. It gives a list.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 05:12 AM
тАО11-17-2004 05:12 AM
Re: How to obtain remote ip address without using DNS?
Just as the -n option in netstat does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 07:20 AM
тАО11-17-2004 07:20 AM
Re: How to obtain remote ip address without using DNS?
Basically - everything mentioned uses the DNS resovler routines to provide the result.
who uses gethostname and gethostbyaddr...
Right from the who man page:
-R Displays the user's host name. If the user is
logged in on a tty, who displays the string
returned from gethostname() (see gethostname(2)).
If the user is not logged in on a tty and the host
name stored in the /etc/utmp or named file has not
been truncated when stored (meaning that the
entire host name was stored with no loss of
information), it is displayed as it was stored.
Otherwise, the gethostbyaddr() function is called
with the internet address of the host (see
gethostent(3N)). The host name returned by
gethostbyaddr() is displayed unless it returns an
error, in which case the truncated host name is
displayed.
Rgds...Geoff