fix bug where local node IP is detected as remote