TechSpot

Question on FTP setup

By quez26
Jun 4, 2007
  1. I'm trying to setup a small FTP site on my desktop at home. Simply using the MS IIS i've gotten everything setup. Now my problem comes in when I try to access it from outside the network. The desktop has an ethernet connection to a DLink DI-634M router. I have set up the virtual server side of the router to connect the ftp traffic to the desktop. Unfortunately, I'm unable to get any connection to it from outside the network. The router says my WAN address is 192.168.1.47......and then i went to whatismyip.com, and i tried using what it said....but still...nothing. Anyone have any suggestions.
     
  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    Are you trying to connect from your own network? Many routers are unable to do loopback connections and it may be impossible for you to connect to your own WAN IP. Use some other internet connection or a proxy server to test your FTP.
     
  3. quez26

    quez26 TS Rookie Topic Starter

    The connection from within the LAN is fine...But when I try to Connect from any computer from outside the lan, it won't connect. It says it can't connect to the server. Now...Using my internet IP, it won't connect. And the WAN address on the router is a private IP. I thought that it should reflect my actual IP.
     
  4. gguerra

    gguerra TS Maniac Posts: 317

    The 192 IP address you gave is a private address and is not accessable from the outside.. If youo want to get your true WAN IP the router has to have a status screen (from browser) or go to http://www.dnsstuff.com/ and look at the top of the screen, that is your true WAN IP. You will still have to open up port 21 so that your router will allow entry..
     
  5. copymonster

    copymonster TS Rookie

    Does that mean you forwarded port 21?

    Normally when your on the internet it works like this

    Internet ----> Computer (ip address example 24.45.156.85)

    But so you can share the internet what it does it runs all the internet traffic through a router which tells all the data where to go

    Internet -----> Router (ip address 24.45.156.85) ----->Your computer (192.168.1.47)

    The 24.45.156.85 is your WAN address or just think of it as how the rest of the world sees you

    You see yourself with your LAN address the 192.168.1.47 and so do all the people who are connected to you inside your network

    So when your lets say at an office and you want to connect to your FTP your going to try and connect to 24.45.156.85, because it is impossible for you to connect to some other networks lan address (you can but not important). So instead your router needs to forward the ftp request to your LAN address to do that you have to set up "Port Forwarding". It simple means that anyone trying to use FTP on your network will look to your computer and not some other computer on your network


    ok, unless you changed it your default router ip address for a DLink DI-634M is 192.168.0.1 ... type that into a browser.... if that doesnt work try 192.168.1.1

    I don't know where the port forwarding section is on the DLINK... i have a linksys router but it shouldn't be hard to find. it might be labeled as "services" or "service ports" or "port forwarding" or something similar. Forward port 21 to 192.168.1.47 and you should be gold. Also router "status" page should tell you your wan ip address
     
  6. jobeard

    jobeard TS Ambassador Posts: 9,322   +622

    well said!

    also be aware that FTP uses two ports, 21 and 20.
    to avoid the complexity this creates, the user attempting access to an FTP
    server
    can use the PASV command to avoid the need for port 20 altogether.
     
  7. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    Port 20 is used as the source port for outgoing connections and you almost never have to think about it. Only the strictest firewall setups ever look at source ports of TCP traffic (since these are supposed to be random anyway).

    Now, since it says it cannot connect to your WAN IP, maybe your ISP is blocking incoming connections?

    Also, what program are you using to connect? IE (or any other browser) is totally useless. Try a real FTP client to get sensible diagnostic messages - even the Windows command line thing would do.
     
  8. jobeard

    jobeard TS Ambassador Posts: 9,322   +622

    Then the admin will need to port forward both ports 20 & 21 to the server ip.
     
  9. gguerra

    gguerra TS Maniac Posts: 317

    Also, I dont think it was mentioned yet and is probably the most obvious check your firewall. XP has one built in and many internet security apps have them such as Norton Internet Security.. You should turn these OFF and let your d-Link handle the firewall tasks
     
  10. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    Please. Have you ever set up a FTP server behind a router? I have.
    Maybe post a link backing up your mantra?
     
  11. jobeard

    jobeard TS Ambassador Posts: 9,322   +622

    oops; I got the direction wrong. port 20 needs outbound access.
    it's been a while.

    for clarity, see the graphic here

    thanks for the correction.
     
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...