use http://localhost and extract it from the url. you could do that easily with some basic php, javascript, or just ask google about it, there is a bunch of examples 
use http://localhost and extract it from the url. you could do that easily with some basic php, javascript, or just ask google about it, there is a bunch of examples 