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

IPv6 - Could not bind to socket #33

Open
tispokes opened this issue Apr 12, 2019 · 4 comments
Open

IPv6 - Could not bind to socket #33

tispokes opened this issue Apr 12, 2019 · 4 comments

Comments

@tispokes
Copy link

Hi,

everytime i try to access the webinterface via a ipv6 device it get "could not bind to socket"-error (from the second part in the index.php (the error-message is implemented twice).
Is it possible to accept IPv6 and IPv4?

Otherwise i will try to rewrite the code of the webinterface to accept both.

Regards

@tillepille
Copy link
Collaborator

Did you use an IPv6 Adress in here in your config?

@tispokes
Copy link
Author

Yes and i also want to support both, v4 and v6. I could simply deactivate ipv6 on my raspi but for the future it's not the right way 🤔

@tillepille
Copy link
Collaborator

#15 is probably related

@tillepille
Copy link
Collaborator

Okay, I guess first Problem is, that the code uses AF_INET.
You could use AF_INET6 there to use it with IPv6.

Change that here, here and around there...

Long time gone since I used this code, its so messy... 😅

The third option is a unix socket, this solves probably the problem with both protocols at once.
Read more here

Unfortunately I don't have a Rpi laying around to test this, besides I build my own version wich works fine with both protocols..

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

2 participants