Problems using VirtualBox to access sites on the net

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. It's likely dead, dying, or wildly inaccurate.

Background 

I’ve set up my VirtualBox to access my localhost (OSX) by following instructions similar to this post, using NAT. Everything was great until I started testing the staging site on the net (not my localhost). Most things worked fine, but uploading larger images would just fail in IE. Uploads worked fine on the localhost, but failed on stage, so I initially thought it was a configuration on the staging server webserver.

 

Solution 

The problem was the network adapter for VirtualBox. I was using NAT as the network adapter setting. This was the cause of the issue.

 

My VirtualBox was not receiving the** ICMP Fragmentation Required** bit from the server. That is why larger images would hang, but smaller images would go through fine.

Now the solution is to change the network adapter back and forth between NAT and Bridged when I notice funkiness on remote sites.

References 

http://sandhillcreative.com/kb/2009/11/19/accessing-your-local-mamp-dev-environment-from-virtualbox/comment-page-1/#comment-194

Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. shanestillwell@gmail.com