add fn to transfer ip address