Page 1 of 1

Controlling a computer using a phone

Posted: 20 Feb 2017, 19:37
by A random guy
How do devs make something happen on a computer using a app on a phone?
For example when a program is running it will do nothing until a person with an android app presses a button. Then it will do something like display a message box.

Re: Controlling a computer using a phone

Posted: 21 Feb 2017, 04:05
by nnnik
The Computer and the Phone have to enter a Client-Server relationship.
The Server waits for Client and then executes predefined commands the client sends via predefined messages.

Re: Controlling a computer using a phone

Posted: 21 Feb 2017, 09:18
by guest3456
^exactly. could be as simple as waiting for an email to be received and then automatically responding to that. or could be way more advanced

Re: Controlling a computer using a phone

Posted: 24 Feb 2017, 19:30
by A random guy
how do they enter this "Client-Server relationship"

Re: Controlling a computer using a phone

Posted: 26 Feb 2017, 16:50
by nnnik
That depends but you should be able to do it with AutoHotkey.
Your phone needs to be able to connect with your PC. You need to choose a way to connect with your phone. Do you want access from inside the network or also from outside.
If you want to connect your phone directly with your PC you could use a TCP/IP library to gain the ability to send data packages from A to B.
Then you could make one Server script open up a port and listen to any incoming connections on that port. The client script would have to connect to the ip of the computer at that specific port and then send/receive data.

Re: Controlling a computer using a phone

Posted: 28 Feb 2017, 20:10
by A random guy
oh ok ill see if i can do this with autohotkey

Re: Controlling a computer using a phone

Posted: 11 Mar 2017, 13:04
by Skittlez
You could take a look at using AHKhttp for the server side. Then you just have to make http requests from your phone.

Re: Controlling a computer using a phone

Posted: 11 Mar 2017, 19:57
by A random guy
interesting!

Re: Controlling a computer using a phone

Posted: 23 Apr 2019, 04:08
by rakesha002
Hello,

nnnik

I know its very old topic but,
i need some help in "Client-Server relationship", i'm a noob too,
i learned a bit using "AHKhttp" for the server side,
Can you give some example about making "http requests from your phone(android)".
also how to keep server up and running to listen the requests,
Thanks.

Re: Controlling a computer using a phone

Posted: 20 May 2019, 22:01
by chrispeddler
nnnik wrote:
26 Feb 2017, 16:50
That depends but you should be able to do it with AutoHotkey.
Your phone needs to be able to connect with your PC. You need to choose a way to connect with your phone. Do you want access from inside the network or also from outside.
If you want to connect your phone directly with your PC you could use a TCP/IP library to gain the ability to send data packages from A to B.
Then you could make one Server script open up a port and listen to any incoming connections on that port. The client script would have to connect to the ip of the computer at that specific port and then send/receive data.
Glad I read this thread. Having same problem connecting my desktop to my mobile. I'm learning here. Thanks!