Hello,
I am looking for a way how to bring the Z-Way Webserver to listen on a specific IPV6 port.
I found a line in the Automation/Webserver.js file where you can determine the port, but this seems to be only working for IPV4 ?
<<ws = new WebServer(8083, function(req)>>
Any idea ?
Best regards
Thomas
Z-Way Webserver IPV6 support
Re: Z-Way Webserver IPV6 support
You can use "addr:port" instead of port.
Re: Z-Way Webserver IPV6 support
I solved it by using the program socat in a systemd service unit.
My solution exposes port 18083 on IPv6 and I'm successfully able to access it from IPv6 using that port.
create file /lib/systemd/system/z-way-ipv6-listen.service with the following content:
And then enable the service with:
My solution exposes port 18083 on IPv6 and I'm successfully able to access it from IPv6 using that port.
create file /lib/systemd/system/z-way-ipv6-listen.service with the following content:
Code: Select all
[Unit]
Description=Adds a IPv6 listen port for z-way
After=multi-user.target
After=network-online.target
Wants=network-online.target
[Service]
Type=idle
ExecStart=socat TCP6-LISTEN:18083,fork,reuseaddr TCP4:127.0.0.1:8083
Restart=always
[Install]
WantedBy=multi-user.target
Code: Select all
sudo systemctl daemon-reload
sudo systemctl enable --now z-way-ipv6-listen.service