added check for local network
(change IP address if you use a different range)