views:

133

answers:

1

So there are a few apps on the app store that implement access to machines that are on a wireless network through the router. Apps such as Apple's own Remote app that lets you control the music on the computer remotely through wifi. Or another app even more amazing, WifiRemote takes that to the next level and lets you control your whole computer from your iphone! wow.

So now to my question(s), pardon my boring intro. How does this work? Obviously there is a wifi module on the iphone that connects with the wifi module on the router, that makes sense.

  1. Does the router track how many clients or devices it has running on it by IP address or MAC address?

  2. Is there a set limit of how many clients a router can typically support, or does it vary by the router?

  3. Are there Wifi API's in the iphone sdk that allow you to easily connect to and communicate with the router?

  4. What is the process behind connecting to the router, and then more specifically, the computer or hardware device you want to?
  5. Once that connection has been established, how do you send commands to the client OS and tell it what to do!? Does it require some nitty gritty deep down background OS programming?

There are many more questions I have, but we'll just leave it at that :) As you can see, I'd really like to get my arms around this concept, of over the wifi network remote access, because it is so intriguing! Any and all answers/comments/links/references anyone has to offer would be greatly appreciated! I am here to learn. Thanks!

+1  A: 

The apps use Bonjour to communicate over a local network. The Bonjour API makes this kind of thing really easy accomplish.

Bonjour Programming Guide

Jasarien
Hey thanks for your help. In my case, I am not working with two computers. I have my iphone, that I want to be able to connect over the wifi router to another wireless device on the network, that can't necessarily have installed on it the necessary bonjour program in order for them to interface. I can get both devices hooked up to the router, but as far as having them communicate, or rather having the iphone communicate with my wifi enabled device through the router, what do I need to do? Is it just a matter of getting some TCP/IP working? Please let me know what you think. Thanks!
Steve
All of the apps you mentioned use Bonjour. Bonjour is cross platform, so it'll run on iPhone, Mac OS X, Windows and other platforms. I'm not trying to dissuade you, Bonjour really is the way to get this kind of thing done.
Jasarien