You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Michael Le Roux <ml...@techie.com> on 2011/06/23 19:58:07 UTC

Unable to Establish Connection Remotely

Dear Support,

 Please can you tell me what must I do, so that I can access my "homedirectory" from a remote computer using a FTP client and the "Apache FTP Server"?, because currently I can only access my "homedirectory" or homedirectories via an FTP client via localhost on the host computer.

 Herewith follows a brief explanation of the setup with information that may help you to advise me:

 I have connected two computers via a wireless network (using two wireless network adapaters and No router). The first computer (is the host computer) has Wndows XP Pro and Aache 2.2.11 and the latest Apache FTP server, and FileZilla. The second computer (is the client computer) has Windows XP Pro and the latest version of the FTP Client called FileZilla.

 1) I have setup user accounts via the File based facility for the Apache FTP Server. I am able to successfully connect to the appropriate homedirectory on my server via the FileZilla FTP client via localhost on the first computer when I specify the following:

 Host: localhost
 Username: my_First_Site_Name
 Password: UserPasswordName
 Port: 2121

 The Hostname for the client PC is called "my-Host". Unfortunately, when I try to connect to the relevant homedirectory via the Second PC (client PC) using the following details then the FTP client stipulates "connected" but then stipulates "Waiting for Welcome Message...." and eventually it times out:

 Host: my-Host
 Username: my_First_Site_Name
 Password: UserPasswordName
 Port: 2121

 Here is a copy of the content for my users.properties file:

 +++++++++++++++++++++++++++++++++++
 ftpserver.user.nusphere_test.userpassword=UserPasswordName
 ftpserver.user.nusphere_test.homedirectory=../../htdocs/my_First_Site_Name
 ftpserver.user.nusphere_test.enableflag=true
 ftpserver.user.nusphere_test.writepermission=true
 ftpserver.user.nusphere_test.maxloginnumber=20
 ftpserver.user.nusphere_test.maxloginperip=2
 ftpserver.user.nusphere_test.idletime=300
 ftpserver.user.nusphere_test.uploadrate=4800
 ftpserver.user.nusphere_test.downloadrate=4800
 ++++++++++++++++++++++++++++++++++++

 Here is a copy of the relevant content for my ftpd-typical.xml file:

 ++++++++++++++++++++++++++++++++++++
 <server xmlns="http://mina.apache.org/ftpserver/spring/v1 "
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
 xsi:schemaLocation="
http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd 
 "
 id="myServer" anon-enabled="true">
 <listeners>
 <nio-listener name="default" port="2121">
 <ssl>
 <keystore file="./res/ftpserver.jks" password="password" />
 </ssl>
 </nio-listener>
 </listeners>
 <!-- it appears the default is encrypt-passwords="true" if not specified therefore i included it below -->
 <file-user-manager file="./res/conf/users.properties" encrypt-passwords="false" />
 </server>
 ++++++++++++++++++++++++++++++++++++

 Please can you tell me what must I do, so that I can access my "homedirectory" from a remote computer using a FTP client and the "Apache FTP Server"?

 I look forward to your response.

 Kind Regards,
 Michael

Re: Unable to Establish Connection Remotely

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Looking at your FtpServer configuration, there should be no difference
in connecting locally or remotely to this server. Could you please
provide the output of netstat /a (I think that's the correct syntax on
Windows) on the same box as FtpServer runs on and the output of
"telnet my-host 2121" on the remote client box.

/niklas

On Thu, Jun 23, 2011 at 7:58 PM, Michael Le Roux <ml...@techie.com> wrote:
> Dear Support,
>
>  Please can you tell me what must I do, so that I can access my "homedirectory" from a remote computer using a FTP client and the "Apache FTP Server"?, because currently I can only access my "homedirectory" or homedirectories via an FTP client via localhost on the host computer.
>
>  Herewith follows a brief explanation of the setup with information that may help you to advise me:
>
>  I have connected two computers via a wireless network (using two wireless network adapaters and No router). The first computer (is the host computer) has Wndows XP Pro and Aache 2.2.11 and the latest Apache FTP server, and FileZilla. The second computer (is the client computer) has Windows XP Pro and the latest version of the FTP Client called FileZilla.
>
>  1) I have setup user accounts via the File based facility for the Apache FTP Server. I am able to successfully connect to the appropriate homedirectory on my server via the FileZilla FTP client via localhost on the first computer when I specify the following:
>
>  Host: localhost
>  Username: my_First_Site_Name
>  Password: UserPasswordName
>  Port: 2121
>
>  The Hostname for the client PC is called "my-Host". Unfortunately, when I try to connect to the relevant homedirectory via the Second PC (client PC) using the following details then the FTP client stipulates "connected" but then stipulates "Waiting for Welcome Message...." and eventually it times out:
>
>  Host: my-Host
>  Username: my_First_Site_Name
>  Password: UserPasswordName
>  Port: 2121
>
>  Here is a copy of the content for my users.properties file:
>
>  +++++++++++++++++++++++++++++++++++
>  ftpserver.user.nusphere_test.userpassword=UserPasswordName
>  ftpserver.user.nusphere_test.homedirectory=../../htdocs/my_First_Site_Name
>  ftpserver.user.nusphere_test.enableflag=true
>  ftpserver.user.nusphere_test.writepermission=true
>  ftpserver.user.nusphere_test.maxloginnumber=20
>  ftpserver.user.nusphere_test.maxloginperip=2
>  ftpserver.user.nusphere_test.idletime=300
>  ftpserver.user.nusphere_test.uploadrate=4800
>  ftpserver.user.nusphere_test.downloadrate=4800
>  ++++++++++++++++++++++++++++++++++++
>
>  Here is a copy of the relevant content for my ftpd-typical.xml file:
>
>  ++++++++++++++++++++++++++++++++++++
>  <server xmlns="http://mina.apache.org/ftpserver/spring/v1 "
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
>  xsi:schemaLocation="
> http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd
>  "
>  id="myServer" anon-enabled="true">
>  <listeners>
>  <nio-listener name="default" port="2121">
>  <ssl>
>  <keystore file="./res/ftpserver.jks" password="password" />
>  </ssl>
>  </nio-listener>
>  </listeners>
>  <!-- it appears the default is encrypt-passwords="true" if not specified therefore i included it below -->
>  <file-user-manager file="./res/conf/users.properties" encrypt-passwords="false" />
>  </server>
>  ++++++++++++++++++++++++++++++++++++
>
>  Please can you tell me what must I do, so that I can access my "homedirectory" from a remote computer using a FTP client and the "Apache FTP Server"?
>
>  I look forward to your response.
>
>  Kind Regards,
>  Michael
>