Fix for hanging spark.HttpFileServer on the kind of virtual network

Some kind of virtual network make spark.HttpFileServer not work.

this is pull request of 

https://groups.google.com/d/topic/shark-users/9x580n5NOfM/discussion