2
1
I am very noob and new to anything that deals with network issues. I have a problem that I have been researching but can't really find direct answers to. Bassically, my problem is the following
1) I am developing some web applications from my local MAMP server on my home machine.
2) I connect to the internet via a wireless CISCO Linksys E2500 router, as well as all my other devices
3) I would like it so that I can connect to my development machine without using its assigned IP address. I would like to create a domain for it, preferably just localhost, so that when I connect through my iphone I can see the development progress without constantly pushing changes to my server.
The reason I do not want to connect through the IP is because the page will not render correctly as all my loaded CSS, Javascript, Image files follow the localhost/developmentFolder/ directory, thus making the pages load incorrectly
I am developing some web applications that will have mobile versions and would like to test this as I work in my mobile browsers. Please let me know if there is a way for make any device in my local network connect through my machine through that specific domain name.
How would I go about doing something like this without any cost. Any help would be greatly appreciated.
7
If your assets (CSS, js, images, etc.) loading are dependant on the FQDN used to reach the page, you should REALLY reconsider how you're doing things. Maybe look into 'relative' vs. 'absolute' file paths (see related link)
– Ƭᴇcʜιᴇ007 – 2013-08-08T18:40:00.907The reason this is not possible is because I am always testing on various machines and using subversion so I cannot go into every line on ever different machine and change the code. I am also using codeigniter as my PHP framework so I have to set the base URLs accordingly – Dom – 2013-08-08T21:04:53.617