calimero-project / calimero-core

Core library for KNX network access and management
Other
130 stars 64 forks source link

Local connection #82

Closed ViorelOnica closed 5 years ago

ViorelOnica commented 5 years ago

Hello !

Is there any way I can find if I'm in the same network with my knx device or not ?

bmalinowsky commented 5 years ago

There is no built-in function that checks that. But if you open a connection with the local endpoint being the anylocal address, the connection will use a network interface on the same subnet.

On the command line, you can use a command like traceroute. Otherwise, in Java, you can query the subnet mask and manually compare the two IP addresses (local and knx device) according to that.

ViorelOnica commented 5 years ago

Thank you !