HCSuperStores Posted August 20, 2004 Posted August 20, 2004 I've set up Net::FTPServer on my computer to run with my MD 10 Official/Apache2 setup. It kind of works. I can FTP to my router address from another machine on that router. But when I try to do this via my IP address I get 2 different results depending on my router settings. If I send port 21 through to 8021, my internal FTP access port, and try using FTP I get "Connection refused". If I try to use a different port, say 2021 in my case, it just hangs. I know the service is working on my machine, but I just can't seem to get it beyond my router. Does anyone have an idea on this? Thanks! Bill Quote
TCH-Rob Posted August 20, 2004 Posted August 20, 2004 Moving to software talk. Do you have the FTP server set to "listen" for traffic on that port and is the router set to port forward to that machine? Quote
taznumber1 Posted August 21, 2004 Posted August 21, 2004 What ftp client are you trying to use to connect to your ftp server. Because you will need to change your ftp client settings so it will only use the port that you are wanting to use. Because normally ftp servers will use random ports to transfer the files, they only use port 21 to start the connection. You will also have to force your ftp server to only use that one port and not to try to connect on the other randoms ports for transfer Quote
HCSuperStores Posted August 21, 2004 Author Posted August 21, 2004 I'm using FTP on the command-line in Linux. I have searched to see if there is a port setting, but I can't seem to find one. The FTP server is set to listen to port 8021 (to my best knowledge) and the router is set to forward to that port. Still no dice. If there is a particular FTP client you think I should try, let me know. Linux preferred if possible. Thanks to all! Bill Quote
HCSuperStores Posted August 21, 2004 Author Posted August 21, 2004 I've swithed the FTP server port to 2021, even though I've had the router forwarding to 21 ... still not working. In fact, it doesn't seem to matter what I set the router to, port 21 seems to be the only working port. Hhhhmmm .... Quote
HCSuperStores Posted August 21, 2004 Author Posted August 21, 2004 Oh never mind ... When I attatched to the port locally (i.e. 192.168.1.101) it needed to talk directly to port 21. This is how I was tessting. But when coming in from the modem, via the IP address, port forwarding took over and it worked. It really did work! Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.