get ip from args