fixed catch exception when looking for remote ip address