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)
document.location.host // localhost:1234 document.location.hostname // localhost document.location.port // 1234