add a new paramenter for external ip