{"id":265,"date":"2013-02-23T18:10:58","date_gmt":"2013-02-24T00:10:58","guid":{"rendered":"http:\/\/www.crccheck.com\/blog\/?p=265"},"modified":"2015-10-11T22:23:42","modified_gmt":"2015-10-12T04:23:42","slug":"fixing-python-simplehttpserver","status":"publish","type":"post","link":"https:\/\/www.crccheck.com\/blog\/fixing-python-simplehttpserver\/","title":{"rendered":"Fixing python -m SimpleHTTPServer"},"content":{"rendered":"<p>If you&#8217;re having a hard time talking to a server started with `python- m SimpleHTTPServer` on a virtual machine, there&#8217;s an easy fix. Add the host PC to the virtual machine&#8217;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&#8217;s NAT, so in my \/etc\/hosts, I added:<\/p>\n<pre>10.0.2.2    crccheck1<\/pre>\n<p>crccheck1 being the name of my computer.<\/p>\n<p>Here&#8217;s where I found the root cause of the problem: <a href=\"http:\/\/www.answermysearches.com\/xmlrpc-server-slow-in-python-how-to-fix\/2140\/\" target=\"_blank\">answermysearches.com\/xmlrpc-server-slow-in-python-how-to-fix\/2140\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re having a hard time talking to a server started with `python- m SimpleHTTPServer` on a virtual machine, there&#8217;s an easy fix. Add the host PC to the virtual machine&#8217;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&hellip;<\/p>\n <a href=\"https:\/\/www.crccheck.com\/blog\/fixing-python-simplehttpserver\/\" title=\"Fixing python -m SimpleHTTPServer\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">Fixing python -m SimpleHTTPServer<\/span><\/a>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[4],"tags":[48],"class_list":["entry","author-showmewhatyougot","post-265","post","type-post","status-publish","format-standard","category-technical","tag-python"],"_links":{"self":[{"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":5,"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/posts\/265\/revisions\/752"}],"wp:attachment":[{"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crccheck.com\/blog\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}