Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-11-2004, 03:36 PM   #1
LQ Newbie
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Connecting to FTP server via the internet

so i set up an ftp server on my linux machine after a lot of trouble using proftpd. Now i can connect to the FTP via my lan by simply typing in the IP of the machine and then logging in. However I'm stumped as to what i do to connect via the internet. I connect to the internet through a DSL modem connected to my router, which both PC's are connected to.

Currently I went into my speedstream router (piece of crap) and set up a virtual FTP server on my linux box. I also moved the box to the DMZ as well just in case. I got a friend to try doing all of the following since i saw somewhere that i might have trouble connecting via the internet to my FTP if i'm on the same LAN. Anyways, my friend tried to connect to:

assuming the IP my ISP gave me is

h ttp:// 101 .100.99.5
ht tp:// 101 .100.99.5:21
ft p:// 101. 100.99.5
ft p:// 101 .100.99.5:21

(spaces because it wont let me post URLs yet)

Firstly i'm not sure which of those is right anyways, or if any are correct. But regardless i'm pretty stumped, anyone have any ideas?
Old 05-11-2004, 06:01 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
I am guessing you mean how do you connect via a browser?

Because it's an ftp server, you'll need to tell the browser you are needing to connect using the ftp protocol, do that with:

Then follow that with your public IP, you can obtain that from:

And finally put them together:

And the browser should be able to pull them up. This certainly assumes your ISP hasn't blocked port 21. If it has, you have a few options, but we'll wait to go there.

To find out what ports you have open and available, head over to:
And take their Sheilds UP! Test and check out the ports available and their condition.

Old 05-11-2004, 06:36 PM   #3
Pete M
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32

Not sure what distribution you are using ? but in Redhat there is an option in security to allow incoming FTP requests

Also you will have to forward port 21 in your router to the server IP

Old 05-11-2004, 07:21 PM   #4
LQ Newbie
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I went to GRC and it said 21 was in stealth (green) but not quite sure what that means. I think i am port-forwarding by creating the virual server via my router, but i could be wrong.
Old 05-15-2004, 07:04 PM   #5
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
In your router's setup screen, assuming there is one, you should find an option to allow port forwarding, and then it will ask you to specify the IP (internal IP) and the port to forward.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help: ubuntu as a server connecting local network to internet ctdarksilver Linux - Networking 2 10-26-2005 10:17 PM
Problems connecting mandrake 7.1 to the Internet through a Windows 2k proxy server richiebartsmith Linux - Networking 1 07-03-2004 06:52 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 06:17 PM
connecting to a friends windows 2000 ftp server ddpicard Linux - General 7 02-06-2003 12:13 PM
Connecting Mac's to a Linux FTP server unclebyron Linux - Networking 2 03-25-2002 08:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration