Added check for loopback address