in reply to Re^3: How to handle Net::Address::IP::Local'->public when we are not connected to internet
in thread How to handle Net::Address::IP::Local'->public when we are not connected to internet

Same error :
Unable to create UDP socket: A socket operation was attempted to an un +reachable network. at C:/Perl/site/lib/Net/Address/IP/Local.pm line 166. 192.80.160.16
  • Comment on Re^4: How to handle Net::Address::IP::Local'->public when we are not connected to internet
  • Download Code

Replies are listed 'Best First'.
Re^5: How to handle Net::Address::IP::Local'->public when we are not connected to internet
by Laurent_R (Canon) on Jan 19, 2015 at 18:59 UTC
    No, it is no longer a fatal error. The program just does what you asked it to do: it prints the content of $@. And then it continues and prints your static IP address, which is enough to prove that the program does not die because of the socket exception.

    Je suis Charlie.