I need to make a script that tells the Internal IP address. Has anyone made such a script, or can someone tell me where to start off?

(I don't know if this is a stupid or common question here, but "search" didn't help me. Sorry if this shouldn't be here)