can anyone tell me how to get host IP and port number on which the web application is running using javascript (e.g. 127.0.0.1:8080)