[google-appengine] Problem with Passive FTP with Appengine

2014-07-24 Thread Fabien Lenoir
Hi,

I am trying to use Appengine (Java) to connect to a ftp server in passive 
mode.
As you may known, passive mode use 2 simultanous connections : 1 on port 
21, and another on port chosen by the server. The problem I encounter, is 
that the two connections are not done from the same IP, as Appengine Socket 
Api use a load balencer and therefore issues connections with different 
source IPs. The problem with this is that the FTP server simply deny IPs 
that haven't initiated connection on port 21.
Is there any way to keep the same source IP for successive socket 
connection ?

Thanks.

Fabien.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Problem with Passive FTP with Appengine

2014-07-25 Thread Vinny P
On Thu, Jul 24, 2014 at 3:24 AM, Fabien Lenoir 
wrote:

>  I am trying to use Appengine (Java) to connect to a ftp server in
> passive mode.
> As you may known, passive mode use 2 simultanous connections : 1 on port
> 21, and another on port chosen by the server. The problem I encounter, is
> that the two connections are not done from the same IP, as Appengine Socket
> Api use a load balencer and therefore issues connections with different
> source IPs. The problem with this is that the FTP server simply deny IPs
> that haven't initiated connection on port 21.
> Is there any way to keep the same source IP for successive socket
> connection ?
>



No, there isn't. The best way would probably be to move your FTP code to an
external server or run it on a managed VM:
https://developers.google.com/appengine/docs/managed-vms/ . By running on a
managed VM you can connect using the same IP (of the hosting machine).


-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.