Ugly way to get IP