Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ray648

macrumors regular
Original poster
Jan 10, 2008
118
0
I'm trying to sort out some basic networking code, which starts by getting an NSHost object then using getStreamsToHost to open the connection. The problem I am having is the following:

NSHost * host = [NSHost hostWithAddress:mad:"127.0.0.1"]; //works perfectly

NSHost * host = [NSHost hostWithAddress:mad:"172.31.5.12"]; //doesnt work

172.31.5.12 is the address of another computer on my network. I can ping it so it is not a network connectivity problem. Any ideas?

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.