File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Sockets and Internet Protocols
how to get IP address in linux
shiva kumar nanda
Joined: May 10, 2007
Jun 15, 2007 01:24:00
I am working on Linux.
I have a problem of getting the IP Address.
Can any one help me in getting the IP Address.
And my IP Address changes day by day.
class i am able to get the IP Address on Windows, but this is failing on Linux.
Joined: Jan 11, 2003
Jun 15, 2007 15:10:00
What are you getting when you do InetAddress.getLocalHost()?.
what does your /etc/hosts have?
I agree. Here's the link:
subject: how to get IP address in linux
InetAddress's getHostName() Fails to work.
connecting to linux using ftp
Setup internet on Linux using a DSL router
Determining Servers IP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013