added ip and port initialisation options