Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
/ PhoneLink-legacy Public archive

The easiest way to link your iPhone to your computer. Integrates with anything that can send HTTP requests.

License

Notifications You must be signed in to change notification settings

ahsan-a/PhoneLink-legacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneLink [Deprecated]

While this still works, updates will be for phonelink-rs instead.

Link your iPhone to your computer via HTTP requests.

v2 (breaking changes)

  1. Run the Installer. Then, run the setup.ps1 file to trust your chosen port, and add it to your firewall. Remote requests will not work if you do not do this. Alternatively, you can download the portable version.
  2. Edit your settings by clicking on the icon in your tray. Make sure to change your save location, as it saves it to a folder inside of it's current path by default.
  3. Download these shortcuts (previous shortcuts adapted for v2):

Answer the questions you are prompted to, or edit the texts inside of the actual shortcut. (You can run the ipconfig command in powershell to find your IP address).

Usage

When you share a link, an option should show in your share sheet called "Open link on computer". Once clicked, the link should appear on your computer's browser.

When you share a file or image, an option in your share sheet should show called "Save File on Computer". Once clicked, the file should save wherever you specified.

You can also use the Phonelink extension to control power state and send notifcations.

Requests look like this: http://IP:PORT/TYPE

⚠ If you have a password, put it in the password header in all of your requests. ⚠

Requests:

Request Type Request Format Request Example Request Description
URL [IP]:[PORT]/url/[URL] 192.168.0.2:1234/url/google.co.uk A GET request to send a link to your computer. It doesn't need to begin with http:// or https://.
File [IP]:[PORT]/file 192.168.0.2:1234/file POST request to save files on your computer. Your file(s) inside of a form-data body. The key can be anything and the value must be your file(s). You can have multiple of these. The save location is whatever specified inside of your settings.
Notification [IP]:[PORT]/notification 192.168.0.2:1234/notification A GET request to send a notification to your computer. Your content must be in the form of headers. Your headers are title, and body.
Power [IP]:[PORT]/power/[TYPE] 192.168.0.2:1234/power/shutdown A GET request to control your computer's power state. your [TYPE] must be either: shutdown, restart, logout, or lock.

password is optional.

Configuration

Click the tray icon for settings, or right click for more options.

Contact

Contact details should be in my profile readme if needed

v1

Installation

  1. Run the Installer. Then, run the setup.ps1 file to trust your chosen port, and add it to your firewall. Requests will not work if you do not do this. (if you manually installed before I created an installer, please delete your PhoneLink folder from wherever you placed it, and delete your startup shortcut.)
  2. Edit your settings by clicking on the icon in your tray. Make sure to change your save location, as it saves it to a folder inside of it's current path by default.
  3. Download these shortcuts:

Answer the questions you are prompted to, or edit the texts inside of the actual shortcut. (You can run the ipconfig command in powershell to find your IP address).

Usage

When you share a link, an option should show in your share sheet called "Open link on computer". Once clicked, the link should appear on your computer's browser. When you share a file or image, an option in your share sheet should show called "Save File on Computer". Once clicked, the file should save wherever you specified.

Alternatively, you can make an HTTP request, I would not reccommend this and i would recommend making an android-alternative to shortcuts, makng a script, etc.

Requests look like this: http://IP:PORT/PASSWORD/TYPE

and like this without a password: http://IP:PORT/TYPE

Requests:

Request Type Request Format Request Example Request Description
URL [IP]:[PORT]/[PASSWORD]/url/[URL] 192.168.0.2:1234/1234/url/google.co.uk A GET request to send a link to your computer. It doesn't need to begin with http:// or https://.
File [IP]:[PORT]/[PASSWORD]/file 192.168.0.2:1234/1234/file POST request to save files on your computer. Your file(s) inside of a form-data body. The key can be anything and the value must be your file(s). You can have multiple of these. The save location is whatever specified inside of your settings.
Notification [IP]:[PORT]/[PASSWORD]/notification 192.168.0.2:1234/1234/notification A GET request to send a notification to your computer. Your content must be in the form of headers. Your headers are title, and body.
Power [IP]:[PORT]/[PASSWORD]/power/[TYPE] 192.168.0.2:1234/1234/power/shutdown A GET request to control your computer's power state. your [TYPE] must be either: shutdown, restart, logout, or lock.

The password is optional.

If you run into any problems make an issue, orcontact me on discord (ahsan#4403).

Configuration

A settings menu is now available by clicking on the PhoneLink icon in the system tray. (v1.2.0)

About

The easiest way to link your iPhone to your computer. Integrates with anything that can send HTTP requests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published