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?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: how to get IP address in linux
Setup internet on Linux using a DSL router
Determining Servers IP
InetAddress's getHostName() Fails to work.
connecting to linux using ftp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013