Network - Use isLoopback API in place of existing localhost checks