So, after continuing research, I found an awesome tool that allows for exactly the above functionality:
For example, if my computer has the IP address of 124.4.1.3
and I was running a web server at blog.lvh.me
, where lvh.me redirects to localhost or 127.0.0.1
, I could access my computer's localhost from another device on the network using blog.124.4.1.3.xip.io
I hope that helps someone!
Sidenote: The app in question was running on a rails server and the above setup required the following setting to be added to the environments/development.rb
file:
config.action_dispatch.tld_length = 5
As rails was running on port 3000, this also required a url like:
blog.124.4.1.3.xip.io:3000