Tradfri-FHEM
Tradfri-FHEM copied to clipboard
Configurable hostname
Could you please make the hostname configurable?
# @todo make user settable
$hash->{DeviceName} = "localhost:1505";
I tried to change this line with another hostname, but it doesn‘t work. Thank you very much.
After a long time of searching I found (in Jtradfri) that the ServerSocket is only listen to the localhost.
//listen to localhost only
ServerSocket socket = new ServerSocket(port, 0, InetAddress.getLoopbackAddress());
It would be really great if you could make the hostname configurable. Thank you.
A listen address for JTradfri can now be set with the command-line parameter "--listen-address". The hostname in the FHEM-module must still be set manually. Feedback is appreciated.
added in my Fork, Attribut jTradfriSocket