rework of get ip