If you ever needed your own IP address then here it is the code. Please note that in certain situations you may have more than 1 IP address.
uses
Winsock;
…
function ReadIPs: TStrings;
type
TaPInAddr = array[0..10] of PInAddr;
PaPInAddr = ^TaPInAddr;
var
Buffer: array[0..63] of Char;
iI: Integer;
PPtr: PaPInAddr;
pHE: [...]
Merlin’s Delphi Forge