raspberry-remote
raspberry-remote copied to clipboard
IPv6 - Could not bind to socket
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
Did you use an IPv6 Adress in here in your config?
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 🤔
#15 is probably related
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..