add break in getLocalIp method