With Firefox for Android, it doesn't permit you to connect a machine on your own LAN, even if you try to add an exception.
With stock browser it does.
I'm sure there are better ways to serve a file between machine and phone, but that python snippet was my easiest goto.
No more