Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communication from Azure web app #69

Open
franksandersen opened this issue Dec 21, 2021 · 0 comments
Open

Communication from Azure web app #69

franksandersen opened this issue Dec 21, 2021 · 0 comments

Comments

@franksandersen
Copy link

I try to use KnxConnectionTunneling from Azure web app but I cannot connect to remote IP gateway. I get this error when calling Connect():
ConnectionErrorException: Error connecting to xx.xx.xx.xx:3671 The requested address is not valid in its context

Same web app is working fine from my PC (visual studio) connecting to remote IP gateway over VPN.

Is there anyone that can guide me about Azure web app networkig setup here?
Anyone who got this knx.net package working from an Azure web app?

My relevant code:

var localIP = Dns.GetHostEntry("mysite.azurewebsites.net").AddressList.Where(x => x.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First().ToString();
var connection = new KnxConnectionTunneling([RemoteKnxGatewayIp], 3671, localIP, 3671);
connection.Connect() -> this line fails with error above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant