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.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay