[c++]New to cpp, Need to get IP

How would I go about getting the IP address of the machine running the program with c++? As I said i’m new and only know the basics.