08-25-2008
IP address of Unix machine
Can any one please tell me how to find the IP address of the Unix machine we are in?
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 Advanced & Expert Users
Hi
i want to know the Ip address of the machine from where i logged into the unix server and made some changes to a file.
Can I know the last changes made to a unix file ? (3 Replies)
Discussion started by: harneet2004us
3 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. Shell Programming and Scripting
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Discussion started by: vidhyaS
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 OPENSOLARIS
net_routeto
net_routeto(9F) Kernel Functions for Drivers net_routeto(9F)
NAME
net_routeto - indicate which network interface packets are sent
SYNOPSIS
#include <sys/neti.h>
phy_if_t net_routeto(const net_data_t *net, struct sockaddr *address,
struct sockaddr *nexthop);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
net value returned from a successful call to net_protocol_lookup(9F).
address network address to find a path out of the machine for.
nexthop pointer to the sockaddr structure in which to store the address of the next hop. If this information is not required, the value
NULL may be passed instead.
DESCRIPTION
The net_routeto() function indicates which network interface packets destined for a particular address would be sent out of, according to
the systems network routing tables. If next is supplied as a non-NULL pointer, the IP address of the nexthop router to be used is returned
in it.
RETURN VALUES
The net_routeto() function returns:
-1 The network protocol does not support this function.
0 This function cannot find a route for the address given.
>0 Indicates which network interface can be used to reach the given address.
CONTEXT
The net_routeto() function may be called from user, kernel, or interrupt context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
net_phygetnext(9F), net_phylookup(9F), net_protocol_lookup(9F), attributes(5)
SunOS 5.11 1 May 2008 net_routeto(9F)