Added new get real ip function