Sachin,

I have opened the port 21 and 20 on my server.

I am able to use the Apache FTP server by using the following settings in:

'users.properties'

ftpserver.user.admin.userpassword=12345
ftpserver.user.admin.homedirectory=./res/home
ftpserver.user.admin.enableflag=true
ftpserver.user.admin.writepermission=true
ftpserver.user.admin.maxloginnumber=0
ftpserver.user.admin.maxloginperip=0
ftpserver.user.admin.idletime=0
ftpserver.user.admin.uploadrate=0
ftpserver.user.admin.downloadrate=0

ftpserver.user.anonymous.userpassword=
ftpserver.user.anonymous.homedirectory=./res/home
ftpserver.user.anonymous.enableflag=true
ftpserver.user.anonymous.writepermission=false
ftpserver.user.anonymous.maxloginnumber=20
ftpserver.user.anonymous.maxloginperip=2
ftpserver.user.anonymous.idletime=300
ftpserver.user.anonymous.uploadrate=4800
ftpserver.user.anonymous.downloadrate=4800


Create a file : 'ftpd-Custom.xml' at <ftpServerBaseDirectory>/res/conf/

Add the following content in it: 

<?xml version="1.0" encoding="UTF-8"?>
<server xmlns="http://mina.apache.org/ftpserver/spring/v1";
        xmlns:beans="http://www.springframework.org/schema/beans"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="
           http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
           http://mina.apache.org/ftpserver/spring/v1 
http://mina.apache.org/ftpserver/ftpserver-1.0.xsd        
           "
        id="myServer">
        <listeners>
                <nio-listener name="default" port="21" implicit-ssl="false">
                        <data-connection idle-timeout="60">                     
        
                                <passive ports="20" address="XX.XXX.XXX.XX" 
external-address="XXX.XX.XXX.XXX"/>
                        </data-connection>                      
                </nio-listener>
        </listeners>    
        <file-user-manager file="./res/conf/users.properties" 
encrypt-passwords="false" />      
</server>

Start your server using the following command:

./bin/ftpd.sh res/conf/ftpd-Custom.xml

After following above procedure, try reconnecting from firefox.

Also reply the status message in server logs if above doesn't work.

-- Ashish

-----Original Message-----
From: Sachin Shetty [mailto:sshe...@egnyte.com] 
Sent: Tuesday, October 18, 2011 1:21 PM
To: ftpserver-users@mina.apache.org
Subject: RE: Browsing ftp from a browser

What browser are you using?
>>Firefox - it works for other ftp servers

Are you sure you have enabled the ftp port on the host server's firewall?
>> Yes, I am able to ftp using FileZilla 

-----Original Message-----
From: Sharma, Ashish [mailto:ashish.shar...@hp.com] 
Sent: Tuesday, October 18, 2011 12:29 PM
To: ftpserver-users@mina.apache.org
Subject: RE: Browsing ftp from a browser

Sachin,

Answer the following:

What browser are you using?
Are you sure you have enabled the ftp port on the host server's firewall?

Thanks
Ashish

-----Original Message-----
From: Sachin Shetty [mailto:sshe...@egnyte.com] 
Sent: Tuesday, October 18, 2011 10:57 AM
To: ftpserver-users@mina.apache.org
Subject: Browsing ftp from a browser

Hi,

 

I found that I could not browse the ftp server running Apache FTP Server
using a browser. Is there something else we need to enable?

 

Thanks

Sachin

Reply via email to