Report question

Question: how to get host IP and port number on which the application is running using javascript