10-22-2012
How to Find another IP address
Hi Guys,
I want to find another(Local host) machine IP address from my machine.. We are all connected in the same server, I mean same LAN.
What i done is
Connected with that user machine using SSH and SU.. After that i used IFCONFIG but it shows my Ip address. Can not able to get the destination machine IP address. How could i do that???
---------- Post updated at 09:54 AM ---------- Previous update was at 09:38 AM ----------
Is there any other command to find..??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I don't have root access. How do I find i.p address of our sun server? Thanks. (4 Replies)
Discussion started by: vpotluri
4 Replies
2. UNIX for Advanced & Expert Users
Hi, I am wondering how I can find the network address under following situation.
Things available:
1. An active network drop without knowing any details about the network.
2. I have windows, Linux, and Solaris machine available to use.
Things to achieve:
1. Find out the... (5 Replies)
Discussion started by: jiashi2
5 Replies
3. HP-UX
I'm trying to find the IP address of a print queue. I tried this, but nada.
cat /etc/hosts | lp -d lp01
Looked in the hosts file but it's not there (2 Replies)
Discussion started by: abNORMal
2 Replies
4. IP Networking
I connect to my client's network via VPN. We have a UNIX box there & I would like to know IP address of my PC when I connect to UNIX box using Putty software. I checked this command - /usr/sbin/ifconfig -a and it showed me the output
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232... (4 Replies)
Discussion started by: gppande
4 Replies
5. UNIX for Advanced & Expert Users
Could anyone help me to identify the IP address of a printer queue with its printer queue name information . (1 Reply)
Discussion started by: lenin1985
1 Replies
6. AIX
How to find the router IP address (2 Replies)
Discussion started by: AIXlearner
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I got a list of IP address from which I would like to remove the duplicates. I cat the file and pipe it to uniq -u or uniq -c, I got the same output with all the duplicates. Can anybody please tell me how I can remove the duplicates IPs from this file? This is what I used.
cat filename |... (3 Replies)
Discussion started by: Pouchie1
3 Replies
8. Red Hat
Hi all,
I am new to this forum and this is my first question :). Using Red hat Linux.I tried to find file which stores IP address based on different helps given in this forum but did not get success. Here is the system details:
-bash-3.2$ lsb_release -a
LSB Version: ... (2 Replies)
Discussion started by: Barkha
2 Replies
9. IP Networking
I'm trying to remotely probe a range of IP addresses. First I need a list of IP addresses for a very small geographic area. I've had a lot of trouble obtaining them. I would like to find a database or something.
Suppose I do get the data. Can I see if that IP address is in use by someone? Can I... (2 Replies)
Discussion started by: rockandAir
2 Replies
10. Shell Programming and Scripting
Hi,
I am trying to write a script that will check all used IP on the server and then print me an addressees that are not in use. Problem is in comparing two variables
#!/bin/bash
NETSTAT=$(netstat -ntp | awk '{ print $4 }' | grep -v "127.0.0.1" | cut -d ":" -f1 | grep "^"|sort | uniq )... (6 Replies)
Discussion started by: nemesis911
6 Replies
LEARN ABOUT HPUX
xaddhosts
XAddHosts() XAddHosts()
Name
XAddHosts - add multiple hosts to the access control list.
Synopsis
XAddHosts(display, hosts, num_hosts)
Display *display;
XHostAddress *hosts;
int num_hosts;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
hosts Specifies each host that is to be added.
num_hosts Specifies the number of hosts that are to be added.
Description
XAddHosts() adds each specified host to the access control list for the server specified by display. The access control list is a primi-
tive security feature that allows access to the server only by other machines listed in a file on the machine running the server. On UNIX
systems, this file is /etc/X?.hosts, where ? is the number of the display.
The application that calls XAddHosts() and the server whose list is being updated must be running on the same host machine.
The address data must be a valid address for the type of network in which the server operates, as specified by the family member. Inter-
net, DECnet and ChaosNet networks are currently supported.
For TCP/IP, the address should be in network byte order. For the DECnet family, the server performs no automatic swapping on the address
bytes. A Phase IV address is two bytes long. The first byte contains the least significant eight bits of the node number. The second
byte contains the most significant two bits of the node number in the least significant two bits of the byte, and the area in the most sig-
nificant six bits of the byte.
For more information on access control, see Volume One, Chapter 15, Other Programming Techniques.
Structures
typedef struct {
int family; /* for example Family Internet */
int length; /* length of address, in bytes */
char *address; /* pointer to where to find the bytes */
} XHostAddress;
/* The following constants for family member */
#define FamilyInternet 0
#define FamilyDECnet 1
#define FamilyChaos 2
Errors
BadAccess
BadValue
See Also
XAddHost(), XDisableAccessControl(), XEnableAccessControl(), XListHosts(), XRemoveHost(), XRemoveHosts(), XSetAccessControl().
Xlib - Host Access XAddHosts()