Connecting to Server.

Hello developers,

Im new to iPhone Development and i have a few questions:

Im trying to create an iPhone application that can send and receive messages to/from a server but i dont know how i have to do this.
Iam trying to connect to an ipadress with a specific port.

Im also trying to get the online/offline status of the server.

Please can someone help me.
Wich functions do i have to use?
Or does someone has a working sample code?

Please i dont know what to do.

Kind regards,

SuperSmash

Original thread: https://forums.imore.com/threads/connecting-to-server.176328/