

We want to edit a file on our computer called the hosts file. So, you may still require these services and thats great, it just doesn't replace what we are trying to do here. However, we still run into the problem of having different domains for your machine vs the device. Services like localtunnel and PageKit are fantastic for quickly exposing your localhost and are invaluable when working on a remote team. I use a few browser plugins that send my current site to my devie and having the exact same domain name is key here. With many CMS systems such as WordPress, I can't really develop on localhost and then view the site on 192.168.1.32. Using an IP isn't ideal because many times applications I run depend on having a consistent domain name. I posted on twitter that I was writing this article and I got quite a few people asking why I didn't just use an IP address or localtunnel. I keep these ports unique for each app so my browser history know the difference between and I usually run these on ports that are easy to remember like 8888. I also have clients who have ruby and python/app engine backends. Express apps run on port 3000 by default so I just need to surf to on any device. If you don't do PHP development, I reccomend using pythons simplehttpserver as MAMP or WAMP are a pain to get up and running properly. This is most common for me, so I run this on the default web traffic port 80. I usually have mamp serving up my entire web devleopment folder so I can easily just surf to something like on any device. I run MAMP to serve up both my static files and my static files. com works better as sometimes browsers think I'm searching for wes.dev instead of going to wes.dev. It obviously not the real, but as you will see it resolves to localhost. This domain could be anything - some devs like to run something like but I find using a. I can access on any device on my network.

My Setupīefore we get started, I should say that is works for any programming language that runs a local server. This is how I run a single development domain that is available to every device on my wireless network as well as on my laptop, regardless of the wifi network I'm on. I develop everything locally and have to test my sites/apps on a variety of mobile devices as well as a few different installs of windows which I run on Virtual Box. Pushing your site to a server isn't ideal, especially when you are debugging a problem and have a longer deploy process. If you do any sort of web development locally you have probably run into at least one of the following problems: * I can't access my local sites/apps on my mobile devices * I can't access localhost inside of my virtual machines * My teammates can't access my local site to view it * I need to test IE6 on my Toshiba crapbook
