I got “Bad Request (Invalid Hostname)” when trying to access a WebMatrix site from another machine on the network. One way around this was the change the URL in WebMatrix to the host machine name rather than localhost… but you have to run WebMatrix as administrator to have binding permission.
Also make sure your firewall port is open… but if you got “Bad Request (Invalid Hostname)” I imagine it already is.
I had some problems with the Logitech MX Master 3S Mouse with an M1 MacBook Pro, but I had better luck with a Logitech G502 X Mouse