site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hello guys, I want to retrieve hostname of router from POSIX api. I have already tried gethostname but it returs hostname of local machine. Do you mean like: printf("dcr2-so-0-3-0.SanFranciscosfo.savvis.net\n"); Or did you have a a different router in mind? 8-) -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... On Feb 1, 2007, at 10:22 PM, subodh singh wrote: So kindly advise me. You will need to define your problem a little more fully before anyone is going to be able to help you... This email sent to site_archiver@lists.apple.com