GPS and Rotation in computer from iphone?

Ok so i need help because i dont even have a clue on how to start this idea…
Sooo i want to have an app on my iPhone that when i open it, and open the computer’s app, the iPhone sends the computer information on the iPhones rotation and its location… i wanna get this to work because i could use the phone like a special controller to control the character on the computer… I have no clue on how to start this.

I probably would use network connection for this. So this is the raw pipeline:

  1. Your computer is a server
  2. Your mobile device connects to the server as client
  3. Send GPS / Rotation / what ever data you want from client to server

These links should give you a good starting point:
http://docs.unity3d.com/Documentation/Components/NetworkReferenceGuide.html
http://docs.unity3d.com/Documentation/ScriptReference/Network.html

There is also easy to use tool / plugin for networking things:
http://www.tasharen.com/?page_id=4518