#1) You need to read the posting guidelines to know that your subject line sucks.
#2) To show the IP and Port, you could use PHP:
Code:
<?php
echo '$_SERVER["REMOTE_ADDR"] : $_SERVER["REMOTE_PORT"]';
?>
Unfortunately, PHP and JavaScript can't share variable values, so you'll have to modify this snippet to send the values to hidden form inputs, submit the form, via GET, to a new PHP page, and parse the URL with JavaScript to determine what IP and Port are being used.
I'm going to bed, so I'm not going to write anything more right now. I suggest you check out PHP.net for documentation, and then learn how to parse URLs with JavaScript.
Goodnight.