C programs code to Get IP address of your computer. I'm used system function to show the ip address and default gateway of your computer. Download the source from here