Fixed finding node's IP address

Right now local routes are examined instead of routes of desired node.