DEV Community

Lucian Green
Lucian Green

Posted on • Edited on

Access your computer's files from your phone

Image: An open laptop in a desert with mountains in the background.
an-open-laptop-sitting-on-cracked-desert-floor-with-mountains-in-the-background-2276729

Have you ever needed to access or develop with files on your computer? You can use a web editor that accesses your files which runs on your computer, and can be accessed on your phone. Note: Web Editor is password-protected to prevent access to files.

Here's how to access your files from your phone (and later, run Prolog files using your computer as a web server):

  1. Download the Philosophy repository from https://github.com/luciangreen/Philosophy.
  2. In swipl (SWI-Prolog, which you also need to install), load ['web-editor.pl'].
  3. Start the server: server(8000).
  4. Find your computer's IP address. On Mac, search for IP address (TCP/IP) in settings.
  5. On your phone, go to http://***IP address***:8000.
  6. The web editor program lets you open or edit, move, copy and delete files and folders on your computer. (Planned: creating new folders and files, and displaying the folder name.)

FXTQTrhVEAA06ae
Figure 1. Open, edit, move, copy and delete files and folders with Web Edit.

FXTQTreVQAEV_61
Figure 2. The Web Edit text file editor.

  • PS. To maintain a connection from your phone to your computer over a longer distance, you may need to install Web Edit and the files to edit on a Virtual Private Server, which can be subscribed to from a number of providers (search online) for a price.

Next: Run List Prolog on the Web
https://dev.to/luciangreen/run-list-prolog-on-the-web-1dfd

Image by Free Images/Thinkstock.

Top comments (0)