New submission from Dāvis <davis...@gmail.com>:

It's not uncommon to encounter FTP servers which are misconfigured and return 
unroutable host IP (eg. internal IP) when using passive mode

See: https://superuser.com/a/1195591

Most FTP clients such as FileZilla and WinSCP use a workaround when they 
encounter such servers and connect to user's specified host instead.

> Command: PASV
> Answer: 227 Entering Passive Mode (10,250,250,25,219,237).
> Status:  Server sent passive reply with unroutable address. Using server 
> address instead.

Currently Python's ftplib simply timeouts for these and doesn't work.

----------
messages: 339712
nosy: davispuh, giampaolo.rodola
priority: normal
severity: normal
status: open
title: ftplib timeouts for misconfigured server
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36570>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to