[SOLVED] Serving files from a computer with dynamic IP address
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Serving files from a computer with dynamic IP address
I'm running Linux Mint 13 on a laptop and would like (occasionally) to give friends and family remote access to files on my machine.
My computer is connected to the internet via a normal ISP and does not have a static IP address.
What are my options in terms of serving my files this way? I would like to ensure that only trusted people can have access to my files (perhaps using a password?)
Thank you for the information. I had a look at their web site and it looks good. They offer a free dynamic DNS option which would be sufficient for me.
However, at this stage I would rather not go into the trouble of having a fixed domain name if I can avoid it.
I'll be happy if I could just give my friends my temporary IP address over the phone and let them download my files for that session only. Is that possible?
Which leads to more questions:
1. How do I find out my external IP address?
2. Will I need to change any settings on my router?
3. How do I setup a server on Linux?
4. Is it apache server? FTP server?
5. Will I introduce security risks by running a server on my machine?
I'm not expecting full answers to those question but maybe some helpful pointers in the right direction?
Google will show you your external add just search "my ip"
What distro do you have ??
I use ssh for file transfer, you would have to install ssh server, It should be in the resportoies if ou dont have it,
Yes you would have to set up port forwarding in the router
Security risks yes always but can be reduced a number of ways.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Your router may well list your external IP address and, yes, you will need to open the correct port on the router.
The easiest option may well be Apache, with FTP being as easy for your relatives and friends but a little longer setup time. SFTP (which you get by installing an SSH server) is more secure but means giving people user accounts on your PC.
What you could do is setup an Apache server, say, and then only open the port to the internet when you want to allow people access or stop and start the Apache service manually as required or both.
I actually set up Debian in Virtualbox so that I could play with Apache and other servers without giving access to my real machine. Then I could just send files to the VM through SFTP when I wanted to serve them up to friends.
Thank you for the information. I had a look at their web site and it looks good. They offer a free dynamic DNS option which would be sufficient for me.
However, at this stage I would rather not go into the trouble of having a fixed domain name if I can avoid it.
I'll be happy if I could just give my friends my temporary IP address over the phone and let them download my files for that session only. Is that possible?
Which leads to more questions:
1. How do I find out my external IP address?
[schneidz]: you go into your routers configuration page (i have a linksys e1200 and it is under the status -- internet ip address:)
2. Will I need to change any settings on my router?
[schneidz]: yes, you will need to do port-forwarding in your routers configuration page
3. How do I setup a server on Linux?
[schneidz]: on most distros you would use the service command to start and stop services.
4. Is it apache server? FTP server?
[schneidz]: depends on how you wish to share information, if you want a web-site then use apache httpd server; ftp is for file transfer (it is old and deprecated so do not use) you can use scp/sftp/sshfs for file transfer or to create a filesystem network instead
5. Will I introduce security risks by running a server on my machine?
[schneidz]: yes, anytime you open ports on a machine (or anything for that matter) you expose it to some level of risk.
I'm not expecting full answers to those question but maybe some helpful pointers in the right direction?
1. How do I find out my external IP address?
In the browser url on any machine on your home network got to whaysmyip.net when the page opens your external IP is at the very top.
2. Will I need to change any settings on my router?
You may need to set up port forwarding for port 80 to your specific machine's internal ip address.
3. How do I setup a server on Linux?
Depends on where you are starting from if you have an old machine as I did you could install Ubuntu from scratch http://www.ubuntu.com/download/server but there are lots Linux versions to choose from or you may just want to install/open Apache on an existing machine.
4. Is it apache server? FTP server?
Ubuntu uses Apache by default and FTP is just one protocol that alow remote access however FTP would not ne recommended for remote access these days, much more secure is something like SSH access.
5. Will I introduce security risks by running a server on my machine?
Always! Any machine on the internet is at risk but there are documents on how to harden your server to minimize the risks Ubuntu had a good one when I was setting up a couple of years back.
Ok, having thought about this for a while, I decided that running a server may be a bit of an overkill for my needs. Although the information I was given will come in useful if I choose to do so in the future. Many thanks for that.
But for a simple exchange of files between me and my friends it may be that a remote desktop application will do just fine.
TeamViewer was kindly suggested by mddesai. This product seems almost too good to be true: it is free, with a clean user interface, allowing simple drag and drop of files to and from remote machines. It even appears to have voice and video over IP capabilities out of the box. Can it really be that good for free?
In addition, it doesn't appear in the Mint software repositories and that makes me worry it may not be so trustworthy. Do I worry too much?
A search in the Mint software repositories came up with:
1. Remmina
2. Vinagre
3. gnome-rdp
Can anyone recommend any of those applications or others? How can I assess which ones are trustworthy before I install them on my machine?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
The remote desktop products included in Linux would require changes to your friends' routers to allow you to connect and would thus leave them with ports open to the internet. Used on a local network they're decent enough but across the internet I can only think of TeamViewer which allows Linux machines to control Windows ones and vice-versa without lots of fuss and fiddling at both ends of the connection.
As for the trustworthiness of TeamViewer as far as I have been able to ascertain it is trustworthy and used by big organisations. I think the business model is that on trying thee free version you'll like it so much that if you're in the business of IT support you'll pay them for extra services and functions.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by spiky0011
Hi
What ever happens you will have to open ports on the router
Using TeamViewer doesn't require any ports being opened. They use central servers to traverse NAT. Hence my suggestion that it's the easiest way to go about this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.