Not weird, because it can't work with this entry. There is an 127.0.0.1 available if you use ipv6 only. And if you do an ping you get this back:
i belive you misunderstood me:
you had the line '127.0.0.1 localhost' in your etc hosts so 'localhost' resolves to '127.0.0.1' which you also had in your 'ip addr' output
now a process listens on 'localhost' (spiceterm in that case with my new patch) which really means now '127.0.0.1',
spiceproxy connects to 'localhost' which again resolves to 127.0.0.1, so this should have worked
Tested, but not work. Here is the error message:
weird, i tested with ipv4 only, ipv4+ipv6 and ipv6 only setups, all worked with my patches
can you try to do the following:
listen on 'localhost' with netcat on any port
Code:
nc -l -p 7000 -s localhost
and connect from a different terminal on the same host to that via localhost
after that any input written on either terminal should appear on the other
this should always work when localhost resolves to an ip that the host has (eg. 127.0.0.1 or ::1)
(that is basically what we do with spiceterm and xtermjs, but through the api/pveproxy/spiceproxy/websocket etc)