Forums

OSError: [Errno 101] Network is unreachable

Hi, I'm on PythonAnywhere and outbound SMTP to Gmail is failing from my account.

Connection target: smtp.gmail.com:587

Error: OSError: [Errno 101] Network is unreachable

The app reaches SMTP connection time, so this is not an app-level error. Could you please confirm whether Gmail SMTP is currently reachable from my account/server, or if a firewall update is needed?

Thanks.

Google changes their IP addresses periodically and they don't publish a list of them either. We will have a look at updating them on Monday.