How do I write a program to read IP address of the PC?
if you using linux, you can read the ip in the file /etc/hosts
Answered before, try a board search.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]