While this still works, updates will be for phonelink-rs instead.
Link your iPhone to your computer via HTTP requests.
- 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. - 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.
- 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).
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
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.
Click the tray icon for settings, or right click for more options.
Contact details should be in my profile readme if needed
- 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.) - 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.
- 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).
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
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).
A settings menu is now available by clicking on the PhoneLink icon in the system tray. (v1.2.0)