Submitted On 05-NOV-1998
JSimmons2
I also encountered this problem when writing an FTP client. My client had to
work on laptops that had ethernet cards and modems. When I used the ethernet
card everything worked fine, because only one IP address was returned as
localhost and it was the correct one. However, when dialed in I would get the
IP address for the ethernet card instead of the one for the PPP adapter.
I tried the fix suggested above and it did NOT work. However, I was able to
figure out a workaround. I found that getAllByName() would return BOTH IP
addresses when the computer was dialed in, and it always returned them in the
same order. I gave the user a way to specify which IP address belonged to the
PPP adapter, and whenever getAllByName returns more than one IP address the
program knows which one to use.
I am not happy with this workaround, but it is better than nothing until this
bug is fixed.
Submitted On 09-FEB-2000
truffle
It's ludicrous this bug hasn't been fixed in over two years. It requires
changing one line of code in sun.net.ftp.FtpClient. I'm I really supposed to
believe that Sun is developing robust networking software in Java, when a
trivial bug like this is ignored for two years?
Submitted On 09-DEC-2000
jthwaite
This problem remains in JDK1.3 - what's the point of a fix
nobody can use? This is causing a real annoyance for me.
Submitted On 03-AUG-2001
colinsauze
I seem to be getting this problem but on a linux machine
which only has a dial up adaptor. Its giving out 127.0.0.1
as its address!
And has this finally been fixed in 1.4?
Submitted On 03-SEP-2001
eliasen
This bugfix must be put back into previous Java releases
(e.g. 1.2.3, 1.3.2) or it makes them largely unusable for
many network operations.
This problem hangs my whole application, which is designed
to handle communication failures gracefully, but can't
handle this gracefully because there's no exception thrown
and no timeout (well, maybe after 2 hours or so it might.)
Submitted On 08-SEP-2001
gwoodruf
Several people have put a lot of time into detailing
EXACTLY what is wrong with this and how to fix it. WHAT IN
THE NAME OF GOD IS GOING ON AT SUN. To those that have put
all the effort. Now I at least know what is wrong with the
software. Thank You. SUN: ->FIX THIS BUG<-
Submitted On 21-FEB-2002
christophercope
I wasted 10 hours tracking this down. I need to trust that
when I call a Java method, it doesn't lie to me. Not good
enough - must try harder.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|