Edit This Code:
See Result »
Example link
Click the button to display the hostname and port number of the link above.
Try it
Result: