fixed crash under vpn

Ignore-this: ea81410a96efc1dd1e68ed349d0b5fcc

didn't check for null in getting network ip.

darcs-hash:20140815214836-c21fe-d00da435c8dd3da2b070b5e23661fa0651ad5ef1