Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Programmer > Re: getLocalHos...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 52685 of 54873
Post > Topic >>

Re: getLocalHost returns a strange IP

by Kevin McMurtrie <mcmurtri@[EMAIL PROTECTED] > May 13, 2008 at 11:34 PM

In article <4829c5e7$0$2478$da0feed9@[EMAIL PROTECTED]
>,
 RedGrittyBrick <RedGrittyBrick@[EMAIL PROTECTED]
> wrote:

> Aaron Fude wrote:
> > Hi,
> > 
> > The result of calling
> > 
> >       java.net.InetAddress.getLocalHost().getHostAddress()
> > 
> > on my machine is:
> > 
> >       169.254.221.10
> > 
> > Now, my machine is on a LAN with IP 192.168.1.3 and the external
> > router IP is something altogether different.
> > 
> > Where in the world does "169.254.221.10" come from?
> > 
> 
> A computer typically has many IP addresses.
> 
> Depending on o/s try "ipconfig -a" or "ifconfig /all" at the command
prompt.

And "localhost" might even be "0:0:0:0:0:0:0:1%0".

-- 
Block Google's spam and enjoy Usenet again.
Reply with Google and I won't hear from you.
 




 6 Posts in Topic:
getLocalHost returns a strange IP
Aaron Fude <aaronfude@  2008-05-13 09:28:54 
Re: getLocalHost returns a strange IP
RedGrittyBrick <RedGri  2008-05-13 17:46:28 
Re: getLocalHost returns a strange IP
Kevin McMurtrie <mcmur  2008-05-13 23:34:48 
Re: getLocalHost returns a strange IP
Dave Miller <dave@[EMA  2008-05-13 18:21:56 
Re: getLocalHost returns a strange IP
"Arved Sandstrom&quo  2008-05-13 19:37:53 
Re: getLocalHost returns a strange IP
Wayne <nospam@[EMAIL P  2008-05-13 23:47:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:16:45 CDT 2008.