lifeemotions / knx.net

KNX.net provides a KNX API for .NET
MIT License
101 stars 47 forks source link

Cannot connect in tunneling #40

Open PSausM opened 6 years ago

PSausM commented 6 years ago

I don't know what I am doing wrong. I cloned your project and tried the test project with the tunneling. I changed the IP to the IP of my KNX/IP Gateway and port 3671. The same as ETS is using. I get a notification from the firewall, when I start the application and I accept the firewall rule. But the app hangs when I try to call an Action to switch light on and off. It just hangs foreever. No exception. Nothing. It does not return from the function.

abelsilva commented 6 years ago

Disable the firewall to test, IP Tunneling needs 2 connections, one each way the IP Interface will try to connect back to your PC, if the firewall is blocking the connection won't be established

If it works, you can add the exception to the firewall on the advanced properties of the windows firewall, you will have to choose the port you want the IP interface to connect back to your system

You can define the port KNX.net will listen https://github.com/lifeemotions/knx.net/blob/2f4d4abcc77f5e540933b17827278ffbb67fae34/src/KNXLib/KnxConnectionTunneling.cs#L33