Joshua
Joshua

Reputation: 15500

Sending a Message from a iPhone to a Mac

How would I send a message to an App on my mac (which I develop) from my iPhone via WiFi? This message would then make something happen in the Mac App.

This is just a fun app for myself so it doesn't need any security like SSL.

Upvotes: 0

Views: 290

Answers (2)

Timothy Baldridge
Timothy Baldridge

Reputation: 10653

Use TCP to create a connection. Here's a tutorial: http://dev.im.ethz.ch/wiki/Socket_communication_on_the_iPhone

But TCP is extremely common protocol, so on the Mac side you can probably just read up on TCP sockets and be fine.

Upvotes: 0

Related Questions