Modify network check when running server locally (see #10409)