[-] wrap getting ip-address into try section