1

Virtual box localhost access

view story
linux-howto

http://serverfault.com – Question on Virtual Box 4.1.8 So, i have Ubuntu 10.10 as host machine and Windows Xp as guest machine. On host machine there is tomcat with web app running on port 8888. When i am in guest machine i type in browser: http://10.0.2.2:8888/Something.html and it works. But my Something.html has links to javascript like src="http://localhost:8888/webApp/someScript.js and they obviously aren't working(because of "localhost" part). The other problem is that i don't want to use relative path now, only absolute. Also i don't want to change localhost to Host Ip in my links Maybe there is some solution, ()