The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Accessing Remote Computers

Posted by Matt Gerrans on October 30, 2001 at 5:57 PM

> But if I wanted to create a program like this, so that I can fully access the files on my computer from another computer, do you know how I could go about doing this. The reason I want to do this is because whenever I go back home for weekends (I'm away at university right now), I find it fustrating since I want to access the files on my computer, but I can't. I guess my question now is how does a VPN work? How does it allow two computers to access each others' files when they are connected to the Internet and not directly to each other through an intranet?

Well, if you have a static IP and you want to write the thing for fun, it wouldn't actually be that tough to make a file transfer tool that lets you login and browse on your home PC. If you don't have a static IP, your home computer can have a Java program (which runs on startup) that sends an email to your school email address (encrypted would be good), which says what its IP is and then starts the socket server, waiting for you to connect. When you start up your client at school, it reads the email (or you could do this part manually) to get the server's IP and can then connect to the server. Voila!

On the other hand, if you want to control your home PC, then there are tools like PC Anywhere that do that. Also, Microsoft has included a similar feature in XP. Of course, if any hackers finds their way into this wide open door...

- mfg


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us