Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Networking Forum > File and Application Sharing
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


File and Application Sharing Help sharing network resources - We do not support P2P of any kind

Reply
 
LinkBack Thread Tools
Old 09-29-2009, 12:45 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2007
Posts: 78
OS: xp


setting up FTP behind router

Hey,
im trying to set up an FTP server so I can access files when im not at home.
Since I have my computer hooked up to a home router I'm not sure how to set up the FTP server/what ip to use since the ip of my computer is only the local ip address through the router - typical 192.168..

im using servu but if anyone has a better program that makes this easier let me know. I did this once before but can't recall how.

winxp sp3
thanks
sli4 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-29-2009, 01:18 PM   #2 (permalink)
Registered User
 
FreeNerd's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 238
OS: Windows 7/Vista/XP


Re: setting up FTP behind router

The first thing to do is get your FTP server working on your local network. (i.e. You can connect to your FTP host from another PC in your network and transfer files). Once you can connect inside your local network, you know the FTP part of your setup is done and we can work on port forwarding in your firewall.

---Firewall---
Your router should have a publicly routable IP address. The firewall in your router will restrict traffic from being routed into your private network that is not already Established or Associated to packets that you sent out. So you need a rule to allow new requests on a specific port to be allowed in to the IP address of your FTP server.

The default FTP port is 21, however for your security you do not want to forward port 21 form the public internet to port 21 on your internal FTP server. That is like broadcasting that you have an FTP server up and will invite attacks. You want to use a random high numbered port to forward in, pick a number you can easily remember.

How you set this up will vary based on your router make and model, but the rule should follow the flow of the example below.

Example Rule:
Allow port 46666 in to IP 192.168.1.X on port 21.

Don't forget that when you want to connect from outside your local network, the FTP port you use will be the high number port you configured. I used 46666 in this example but you can use anything you want between 0 through 65535. I would stay above 10000 for random ports.
__________________
“Criticism is something we can avoid easily by saying nothing, doing nothing, and being nothing” ~ Aristotle

Last edited by FreeNerd; 09-29-2009 at 01:22 PM.
FreeNerd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-29-2009, 02:01 PM   #3 (permalink)
Registered User
 
Join Date: Dec 2007
Posts: 78
OS: xp


Re: setting up FTP behind router

thanks for getting back to me...
So I tried setting up the FTP to connect to locally - I went through the setup wizard and entered the FTP of my computer as the ip address @ port 21.. And when I clicked connect to run the server it says "unable to connect to server 192.168....." And that's it. Is there a different ip I should be putting in? Port 21 is forwarded as far as I can tell within the router settings.
sli4 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-29-2009, 02:04 PM   #4 (permalink)
Registered User
 
FreeNerd's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 238
OS: Windows 7/Vista/XP


Re: setting up FTP behind router

You need to make a rule in your Windows firewall on your FTP server to allow port 21. Until you have it working locally the port forward won't matter.
__________________
“Criticism is something we can avoid easily by saying nothing, doing nothing, and being nothing” ~ Aristotle
FreeNerd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-29-2009, 03:05 PM   #5 (permalink)
Registered User
 
Join Date: Dec 2007
Posts: 78
OS: xp


Re: setting up FTP behind router

well the good news is that it works locally. Just got the it all figured out. Now I just don't know if I can connect from somewhere outside of my house.
How do I find the public routable ip?...
Do I just have to find the main ip and then use that forwarded port (in your example the 46666 port?)?

How do I set it up to forward that port on public and not private?
sli4 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-29-2009, 03:10 PM   #6 (permalink)
Registered User
 
Join Date: Dec 2007
Posts: 78
OS: xp


Re: setting up FTP behind router

note: there is an option in the forwarding settings to specify a public ip... Am I supposed to do anything with that?
Currently the setting is routed from port 21 into a random port number through the up of my computer (192.168....)
Am I on the right track?
sli4 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-29-2009, 03:18 PM   #7 (permalink)
Registered User
 
FreeNerd's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 238
OS: Windows 7/Vista/XP


Re: setting up FTP behind router

You can get your public IP address by going to www.whatismyip.com.

You don't want to forward from 21 to a random port. You want to forward from the high numbered port to port 21, a static port mapping that is forwarded into your local servers IP address.

You IP address will change, so if your router supports dynamic DNS I suggest you set it up so you can use a network name to connect and not worry about what your IP changes to each time your router gets a new DHCP IP address.
__________________
“Criticism is something we can avoid easily by saying nothing, doing nothing, and being nothing” ~ Aristotle
FreeNerd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-09-2009, 02:12 PM   #8 (permalink)
Registered User
 
alpenadiver's Avatar
 
Join Date: Jul 2007
Location: Alpena, Michigan
Posts: 346
OS: Windows XP Pro, Windows 7

My System

Send a message via MSN to alpenadiver
Re: setting up FTP behind router

You can also go to DynDNS http://www.dyndns.com/ sign up for a Dynamic DNS account create a web address then you can use your FTP server with a dynamic IP, this is what I use for my FreeNAS server.
alpenadiver is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 02:35 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85