functionality for updating ip and port provided