?
Solved

How to set FTP on IIS with router

Posted on 2009-04-30
13
Medium Priority
?
531 Views
Last Modified: 2013-12-02
Hi

I created a port 5050 in router to point to the local server at 192.168.1.50.
I open a dyndns to point to that machine. So, http://portforward.dyndns.org:5050 will point to it.

Now, I set up the default FTP on IIS 6 on windows 2003 server. I assigned the port to be 5050.

When I type ftp://portforward.dyndns.org:5050, it shows error:

Do you have permission to access the folder. (But, I grant all access in ftp)
200 Type set to A
500 Invalid port command
500 LPRT 6,16,0...command not understood

How should configure it correctly?
0
Comment
Question by:techques
  • 7
  • 6
13 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 24280182
LPRT is not a standard command FTP command (yet), it is part of RFC 1639 which is Experimental.    My guess is that MS IIS FTP server has not implemented it.

What FTP client are you using?
0
 

Author Comment

by:techques
ID: 24286050
I just use a IE browser to open the ftp.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 24288205
Which version, 8?  
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:techques
ID: 24288466
IE 6
0
 
LVL 57

Expert Comment

by:giltjr
ID: 24288617
Um, it could be the ftp server may be configured not to allow active ftp (PORT command) and only allows passive ftp (PASV) command.  You may want to try changing your IE setting to use passive FTP.

This should be under the advanced tab of IE's options.
0
 

Author Comment

by:techques
ID: 24294435
yes, IE was set passive FTP, but still not ok.

0
 
LVL 57

Expert Comment

by:giltjr
ID: 24294758
Do you have any IE add-ons that could be intercepting the ftp stuff from IE and doing it?

You may want to try a free ftp client (like filezilla) and see if it works with your setup in passive and active mode. If filezilla works (espeically if it works in passive) then it is something weird with your IE and not with IIS.
0
 

Author Comment

by:techques
ID: 24301323
I installed filezilla server on the remote machine, however, it cannot connect to server.

I set the ip to be 192.168.1.50 with port 5050.

FTP client filezilla also cannot connect to it.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 24301476
Have you actually configured IIS to listen on port 5050? On that server issue the command:

       netstat -an

and verify that IIS is listenting on port 5050.
0
 

Author Comment

by:techques
ID: 24301542
You are right, when I type netstat -an, it does not has that 5050 port listening.
However, 1) I started the IIS FTP with 5050 port, 2) I set the router to accept TCP 5050 port and direct to the 192.168.1.50 machine.

Where did I set wrongly?
0
 
LVL 57

Expert Comment

by:giltjr
ID: 24303065
Was something listening on port 21?

Make sure that the ftp server is setup to listen on port 5050.  Then stop and restart it.

You may still have some problems as most firewalls are design to "snoop" ftp traffic on port 21.  This way they can dynamically allow the data transfer connections to be established.  Using a non-standard port for the command/control connection could prevent the data connections from working once you get the command/control connection working.
0
 

Author Comment

by:techques
ID: 24311846
for 192.168.1.50 machine, it has not listened port 21
but for 0.0.0.0, I saw it has 0.0.0.0:21

yes, ftp server is set to port 5050 and i stop and restart it.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 150 total points
ID: 24313362
The 0.0.0.0:21 indicates that there is something up and running listening on tcp port 21.  Since this is the default port for ftp command/control connections I can only assume that this is the ftp server.

The 0.0.0.0 just means that the ftp server did not specify a specific IP address when it opened port 21, so it will listen and accept connections on any IP address that is configured on your server.

I would look at the event logs to see if there are any errors.  Obviously Windows does not believe you have changed the command/control port.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question