Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

[ekey] listen to udp6 instead of udp only #5815

Open
hsteppke opened this issue Feb 14, 2019 · 1 comment
Open

[ekey] listen to udp6 instead of udp only #5815

hsteppke opened this issue Feb 14, 2019 · 1 comment

Comments

@hsteppke
Copy link

Expected Behavior

Taken the CV LAN Modul from ekey sends in ipv4 only the binding should listen to udpv4 sockets but it rather starts listen on udpv6 only.
I did verified it using "netstat -plunt" and there i see it only listen to the port i have given in the udp6 part only.

I suggest to change:
openhab1-addons/bundles/binding/org.openhab.binding.ekey/src/main/java/org/openhab/binding/ekey/internal/EKeyPacketReceiver.java
Line 82
try { // create socket
socket = new DatagramSocket(port);
} catch (SocketException e) {
e.printStackTrace();
}

Possible Solution

uses DatagramSocket(int port, InetAddress laddr) with a local IPv4 Addre

Your Environment

openhabianpi

@9037568
Copy link
Contributor

9037568 commented Feb 15, 2019

You're going to have to be a whole lot more clear. I have no clue what this is requesting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants