Change http://localhost:3000 to myapp.dev with marathon-dns
1–8 of 8 posts
Re: Change http://localhost:3000 to myapp.dev with marathon-dns
#2EDIT: Oops. Didn't notice the port number part.
Re: Change http://localhost:3000 to myapp.dev with marathon-dns
#3Re: Change http://localhost:3000 to myapp.dev with marathon-dns
#4I have done a similar trick for the entire lan by doing port forwarding on DD-WRT and similar.
I pretty routinely highjack ports as domains for doing local testing. If I want to make sure that I'm hitting my own cached version of an API that I need to consume from a third party I just serve it from local. That way I can dev offline, or guarantee that I will always get the same response, or a much faster response. I could Mock it, or do a number of other things, but it is often nice to be able to see what is going over the wire, and using a proxy to handle the redirect and port change is one of the best ways to do so.
Re: Change http://localhost:3000 to myapp.dev with marathon-dns
#5Is this just a proxy? It seems like this script accepts packets and forwards them on to localhost.