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
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
Determining Servers IP
Setup internet on Linux using a DSL router
connecting to linux using ftp
InetAddress's getHostName() Fails to work.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015