Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hy
I want to make a programattically connection between PC and Android smartphone over internet and i don't know how to do that , the real problem that i cant figure how to connect between the two devices programatically since i don't know the real IP for both of them . 
i know that i will need an application on the PC , and an other one on the Android so they communicate with each other . but i cant figure out how to do it 


What I have tried:

I can't figur out that how it is possible..
Posted
Updated 26-Feb-17 0:23am

1 solution

Use a server: it has a fixed IP / URL, so both PC and Android device can communicate with it, regardless of where they are (provided they have an internet connection, obviously).
They talk to the server and it acts as a relay between them, in much the same way as a "real time chat" website would.
 
Share this answer
 
Comments
Danish92 26-Feb-17 6:32am    
But how I build the server..
Danish92 26-Feb-17 6:33am    
I want to know how the server side is coded or at which language
OriginalGriff 26-Feb-17 6:36am    
C# is good, it'll run on the server.
Exactly how you build it depends on you and what you are trying to achieve.
If you are a beginner here, start by looking at chat site code to get an idea how it works - but don't expect it to be trivial, you are going to be coding two or three separate apps all of which must work to get this running.
Danish92 26-Feb-17 8:56am    
Yes I m beginner it's mine final years project of bscs. Mine project is to monitor the pc activities by android mobile phone.. I am really worried about this because I don't understand the logic that how I code this one.. I don't know how I start my work
Danish92 26-Feb-17 8:57am    
Plz help me.. that how I start my project coding.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900