--ip parsing OK; static global variable issue NOT OK