How to deal exception situation when a PC obtains an IP address?