Fixing python -m SimpleHTTPServer

If you’re having a hard time talking to a server started with `python- m SimpleHTTPServer` on a virtual machine, there’s an easy fix. Add the host PC to the virtual machine’s hosts file. The problem arises because the logger tries to report the full name of the request origin, which I never bother setting up locally. I use Virtualbox’s NAT, so in my /etc/hosts, I added:

10.0.2.2    crccheck1

crccheck1 being the name of my computer.

Here’s where I found the root cause of the problem: answermysearches.com/xmlrpc-server-slow-in-python-how-to-fix/2140/

Leave a Reply

Your email address will not be published. Required fields are marked *