Gosh, man I'd been trying to display the IP address of any computer and had been looking like hell all over the net for this.
At last I found a good one. This script captures the IP address of the person filling in your form and submits it to you as part of the form. The script works The client IP address is stored in variable "VIH_HostIP". The client host name, if available, is stored in variable "VIH_HostName".
Thanks for the script. You can check out the link here too.