LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-11-2011, 06:03 PM   #16
B00Mshesaid
Member
 
Registered: Oct 2011
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: Disabled

Ok, thanks for explaining that. One last thing, you don't have to walk me through it but could you point me in the right direction? Say I want my friend to access this FTP. My local IP is 192.168.1.152, but clearly if she tries to ftp that address she wouldn't get anywhere cuz we'd both be behind routers. Will this ftp work if we are not on the same network?
 
Old 10-11-2011, 06:08 PM   #17
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

If your friend is in the same network that is 192.168.1.0 network then she can access the ftp server but if not then she wouldn't be able to. However, if you have got a public IP for this ftp server then you can access this ftp server from anywhere.
 
1 members found this post helpful.
Old 10-11-2011, 06:16 PM   #18
B00Mshesaid
Member
 
Registered: Oct 2011
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: Disabled
Ok, is there a lot involved with that? Would it be easier to use ssh or scp?
 
Old 10-11-2011, 06:22 PM   #19
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
Reply

Quote:
Originally Posted by B00Mshesaid View Post
Ok, is there a lot involved with that? Would it be easier to use ssh or scp?
Not sure in which sense you are asking? Are you trying to say that if scp or ssh is easier between different networks? Well that will also not be possible unless you add routes in your router to let both networks talk to each other.

If that is the case then you can FTP even if your routers allow. You just need to open up port 20 and 21. For ssh you have to open up port 22.
 
Old 10-11-2011, 06:26 PM   #20
B00Mshesaid
Member
 
Registered: Oct 2011
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: Disabled
Ok, sorry if I was unclear. So sticking with FTP, I need to open port 20 and 21 on my laptop, then forward the ports on my router?
 
Old 10-11-2011, 06:31 PM   #21
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

I will give you an example:

Suppose you are part of network A and your system running FTP is A'.

Your friend is part of network B and her system is B'

Now for your friend to access FTP running on A' following conditions should met:

1. Network A router should be able to communicate to Network B router.
2. Host A' should be able to communicate with host B' and vice-versa.
3. Port 20 and 21 should be opened on both the routers.
4. If firewall is turned on on any of the host it should either be turned off or should allow communication on port 20 and port 21.

I hope this helps.
 
1 members found this post helpful.
Old 10-11-2011, 06:36 PM   #22
B00Mshesaid
Member
 
Registered: Oct 2011
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: Disabled
Yeah, thanks man. I'll try to figure it out from here.
 
Old 10-11-2011, 06:37 PM   #23
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

You're welcome. Enjoy Linux!!!
 
  


Reply


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
Transferring Files from Linux to Windows bigmac15 Linux - Newbie 8 06-14-2011 10:23 PM
transferring files to from Windows machine to Linux bbb125 Linux - Newbie 21 08-17-2010 07:51 AM
Transferring files from Linux onto Windows paragkalra Linux - Networking 1 08-08-2008 04:56 AM
Transferring files/folder into Linux from Windows XP environment sheenawee Linux - General 1 01-25-2006 01:19 PM
Transferring Files from linux to windows on floppys? rverlander Linux - General 6 06-23-2002 01:45 AM


All times are GMT -5. The time now is 01:23 PM.

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