04-10-2008
Some editors leave a backup file so you can see what you changed.
Your latest logins are visible with the "last" command. It's sometimes truncated or otherwise obscured, but if you're lucky, you will be able to see (or derive) your IP address from that information.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hopefully someone can help with this. I need the command to change the IP address on a machine (7 Replies)
Discussion started by: kkinnon
7 Replies
2. UNIX for Dummies Questions & Answers
I have a need to allow only certain IP addresses to access a machine running solaris 9. I am not sure how this can be accomplished.
Thanks in advance for your help.
Patch (2 Replies)
Discussion started by: patch
2 Replies
3. Programming
Is there any API call to get IP Address of a machine? I know there is function which returns name of the machine, gethostname(). But I need the IP.
Thanks & Regards,
Ahsan (7 Replies)
Discussion started by: Ahsan
7 Replies
4. IP Networking
hi
is there is any command that retrieves the IP address of a machine. Also is there any function in c that does the same.
thankx (5 Replies)
Discussion started by: mridula
5 Replies
5. Shell Programming and Scripting
I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Discussion started by: mvictorvijayan
3 Replies
6. UNIX for Dummies Questions & Answers
Can any one please tell me how to find the IP address of the Unix machine we are in? (9 Replies)
Discussion started by: thoothukudiking
9 Replies
7. Solaris
Hi
How to get the IP address / Host name of a particular user connected to Unix Server.
For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made.
How can this be achieved?
Thanks (6 Replies)
Discussion started by: MVL
6 Replies
8. UNIX for Dummies Questions & Answers
Hi All
I am having a solaris 10 virtual machine on vista (using vmware 7) laptop.
Now i want to access virtual machine from vista using putty.
Problem is that i insalled the solaris machine as dhcp. and whenever i connect to internet or reboot my system the IP address of solaris... (1 Reply)
Discussion started by: ankurk
1 Replies
9. Solaris
hi all
i want to set ip address to a vitrual machine i am using following command.
but it is not ifconfig -a command output.
what is wrong i dont know
bash# ifconfig interfacename plumb
bash# ifconfig interfacename auto-dhcp
Please use code tags next time for your code and data. (4 Replies)
Discussion started by: nikhil kasar
4 Replies
10. Programming
i m writing a program which finds the i.p address of the machine.
but it just prints out the first three character of the ifconfig output
but i want to just print my i.p address lik 10.0.0.222 which is in second line after inet addr:
code :
#include<iostream>
#include<cstdlib>
using... (1 Reply)
Discussion started by: console
1 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()