Get remote and local ip