Tradfri-FHEM icon indicating copy to clipboard operation
Tradfri-FHEM copied to clipboard

Configurable hostname

Open hvorragend opened this issue 7 years ago • 3 comments

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.

hvorragend avatar Dec 12 '17 20:12 hvorragend

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.

hvorragend avatar Dec 12 '17 23:12 hvorragend

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.

peterkappelt avatar Feb 04 '18 19:02 peterkappelt

added in my Fork, Attribut jTradfriSocket

Saharel001 avatar Oct 09 '18 10:10 Saharel001