Show the address of the server using the console

If I close my browser tab or window, I don't know the address of the test is http://localhost but I don't know which port was used.