passing ip as argument to server