use chrome code to find the localhost hostname