Guiserver connection
Posted: Tue Apr 01, 2008 10:37 pm
Hi Lutz,
Just a 5 cent remark.. ;-)
Why does the guiserver.java determine the host ip-address by a
lookup of the host name?
host = ssocket.getInetAddress().getHostAddress();
This defines a lookup by hostname of the local ip address, which is
on itself oke, but strange iif gui-server always connects to "127.0.0.1".
I.e. is it not said that a DNS entry must exists or a /etc/host file entry of
the hostname must exists. If it does not exist Guiserver cant find the host.
(which is actualy localhost). A machine works perfectly without DNS entry's
of a hostname entry inside the /etc/host file for local connections.
Why this all? ;-) Well It took me a day to figure out why Gui-server did
not pass the connection stage with java... Reason.. there was no hostname inside the /etc/host file ,
so all lookups done by guiserver.java failed.
host = '127.0.0.1' always works , is more secure and is even quicker...
This report from java, (below) is officially incorrect.
..
accepted from 0.0.0.0
connecting to 0.0.0.0 47012
..
A routing/gateway address 0.0.0.0 is not for use in socket connections.
Just a 5 cent remark.. ;-)
Why does the guiserver.java determine the host ip-address by a
lookup of the host name?
host = ssocket.getInetAddress().getHostAddress();
This defines a lookup by hostname of the local ip address, which is
on itself oke, but strange iif gui-server always connects to "127.0.0.1".
I.e. is it not said that a DNS entry must exists or a /etc/host file entry of
the hostname must exists. If it does not exist Guiserver cant find the host.
(which is actualy localhost). A machine works perfectly without DNS entry's
of a hostname entry inside the /etc/host file for local connections.
Why this all? ;-) Well It took me a day to figure out why Gui-server did
not pass the connection stage with java... Reason.. there was no hostname inside the /etc/host file ,
so all lookups done by guiserver.java failed.
host = '127.0.0.1' always works , is more secure and is even quicker...
This report from java, (below) is officially incorrect.
..
accepted from 0.0.0.0
connecting to 0.0.0.0 47012
..
A routing/gateway address 0.0.0.0 is not for use in socket connections.