10-21-2005
how to retrieve IP address of a machine
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
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. Programming
Hi all,
I am writing a program to retrieve the IP address or machine name of the local machine using C.
Is there any C function that does this?
ny clue will be of gr8 help!!!
thanx a lot. (1 Reply)
Discussion started by: mridula
1 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. 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
8. UNIX for Dummies Questions & Answers
Hello
Please I ask if it is possible to recover data that is stored on a remote machine that I access via ssh on a usb ? if so, how?
Thank you so much (5 Replies)
Discussion started by: chercheur857
5 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
tt_message_file
tt_message_file(library call) tt_message_file(library call)
NAME
tt_message_file -- retrieves the file attribute from a message
SYNOPSIS
#include <Tt/tt_c.h>
char *tt_message_file(
Tt_message m);
DESCRIPTION
The tt_message_file function retrieves the file attribute from the specified message.
The m argument is the opaque handle for the message involved in this operation.
RETURN VALUE
Upon successful completion, the tt_message_file function returns a string containing the file attribute of the specified message. The
application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned pointer:
TT_OK The operation completed successfully.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
TT_ERR_POINTER
The pointer passed does not point to an object of the correct type for this operation.
APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3).
tt_message_file(library call)