Closed aguiswite closed 4 years ago
It seems the DatagramSocket constructor wants the local IP of the network interface, so maybe the best/easiest way is to make a new config for outbound IP. Is that a good enough solution?
Yes, that is exactly what I need. An outbound IP configuration will be perfect. Thanks @FluBBaOfWard!
Here is a test version with config for outboundIP. If that works for you I will make a real release of it. org.openhab.binding.playstation-2.5.6-SNAPSHOT.jar.zip
The updated binding worked for me on the first try. Thank you for adding this feature.
My OpenHAB instance has 2 network interfaces. It appears the the server and ps4 must both be on the same subnet for the wake packet to send successfully. I configured OpenHAB to use interface A as my primary address in the system settings because that subnet is where the majority of IoT devices exist. However, my PS4 exists on a different subnet which is accessible via network interface B. The playstation binding is sending the wake packet on interface A when it should be sending on interface B instead. I think the solution should be as easy as passing the bound socket address (from Thing config entry) into the DatagramSocket constructor.