Better way to get IP Address