IP Address

I was wondering how I would get the IP address from windows 3.1, using a
dos compiler.  I don't have the Windows units, so I can't program for
windows, any help would be appriciated.