need help connecting iOS and Mac

I’m trying to use Mac as a server and iPad as a client, but they didn’t seem to be able to communicate with each other.
I have tried building the project on Mac by testing one on the Unity editor and another for a Mac built version and they
worked fine. Somehow, it is not working between Mac and iPad/iPhone. Thank you in advance for any help.
Here is my code…

connectToIP = Network.player.ipAddress;
connectionPort = 26500;
if(GUILayout.Button(“Start my own server”, GUILayout.Height(30))){
Network.InitializeServer(10, connectionPort, useNAT);
}

if(GUILayout.Button(“Connect”, GUILayout.Height(25))){
Network.Connect(connectToIP, connectionPort);
}

Same problem here, though I went even more messy as trying to run iPad as server and OS X as client.
No one nothing on this ?

Thanks,