Change GetlocalIP to check for interface automatically