Get the IP of machine in other domain

Hello!
How can I get (or "can I get") an IP address of remote machine in other domain from C++ program?
Thank you.
[123 byte] By [Igor Lopatin] at [2007-11-17 14:28:02]