title: how to get host IP and port number on which the application is running using javascript
body: <p>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)</p>