Normally, this should work with IPv4 and IPv6 in the default configuration. And I’m not sure if the shown values are 100% accurate. It’s strange, to say at least. I’ve disabled IPv6 on my demo system:
root@DietPi5:~# ip a
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d8:3a:dd:c0:0e:c3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.24/24 brd 192.168.0.255 scope global dynamic eth0
valid_lft 86281sec preferred_lft 86281sec
No IPv6 address on eth0
And yet it still shows the connection as being via IPv6, strange
root@DietPi5:~# lsof -i :5252
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
frontend 575 dietpi-dashboard-frontend 10u IPv6 5001 0t0 TCP *:5252 (LISTEN)
frontend 575 dietpi-dashboard-frontend 12u IPv6 7368 0t0 TCP dietpi5.lan:5252->gram.lan:62289 (ESTABLISHED)
frontend 575 dietpi-dashboard-frontend 13u IPv6 7373 0t0 TCP dietpi5.lan:5252->gram.lan:63663 (ESTABLISHED)
In contrast, tcpdump captures IPv4 traffic
root@DietPi5:~# tcpdump -i any -c500 -nn port 5252
tcpdump: WARNING: any: That device doesn't support promiscuous mode
(Promiscuous mode not supported on the "any" device)
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
09:56:24.846727 eth0 In IP 192.168.0.94.62289 > 192.168.0.24.5252: Flags [P.], seq 1028032691:1028033436, ack 35848577, win 255, length 745
09:56:24.846756 eth0 Out IP 192.168.0.24.5252 > 192.168.0.94.62289: Flags [.], ack 745, win 454, length 0
09:56:24.846847 eth0 Out IP 192.168.0.24.5252 > 192.168.0.94.62289: Flags [P.], seq 1:278, ack 745, win 454, length 277
09:56:24.858335 eth0 In IP 192.168.0.94.62289 > 192.168.0.24.5252: Flags [P.], seq 745:1496, ack 278, win 254, length 751
09:56:24.858382 eth0 Out IP 192.168.0.24.5252 > 192.168.0.94.62289: Flags [P.], seq 278:545, ack 1496, win 452, length 267
09:56:24.867367 eth0 In IP 192.168.0.94.62289 > 192.168.0.24.5252: Flags [P.], seq 1496:2246, ack 545, win 253, length 750
09:56:24.867425 eth0 Out IP 192.168.0.24.5252 > 192.168.0.94.62289: Flags [P.], seq 545:4253, ack 2246, win 452, length 3708
09:56:24.870800 eth0 In IP 192.168.0.94.62289 > 192.168.0.24.5252: Flags [.], ack 4253, win 255, length 0
09:56:24.926910 eth0 In IP 192.168.0.94.62289 > 192.168.0.24.5252: Flags [P.], seq 2246:2842, ack 4253, win 255, length 596
09:56:24.926953 eth0 Out IP 192.168.0.24.5252 > 192.168.0.94.62289: Flags [P.], seq 4253:7388, ack 2842, win 452, length 3135
09:56:24.927704 eth0 In IP 192.168.0.94.64089 > 192.168.0.24.5252: Flags [S], seq 79765902, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
09:56:24.927724 eth0 Out IP 192.168.0.24.5252 > 192.168.0.94.64089: Flags [S.], seq 34666185, ack 79765903, win 64240, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
09:56:24.928116 eth0 In IP 192.168.0.94.57675 > 192.168.0.24.5252: Flags [S], seq 1472177124, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
ok, for testing purposes, you can explicitly set the frontend to use IPv4
sudo sed -i 's/http_subnet = "::"/http_subnet = "0.0.0.0"/' /opt/dietpi-dashboard/config-frontend.toml
sudo systemctl restart dietpi-dashboard-frontend.service dietpi-dashboard-backend.service