我正在做以下事情:
struct sockaddr_in address;
address.sin_len = sizeof(address);
address.sin_family = AF_INET;
address.sin_port = htons(url.port);
address.sin_addr.s_addr = inet_addr([url.host UTF8String]);
self.reachabilityManager = [AFNetworkReachabilityManager managerForAddress:&address];
[self.reachabilityManager startMonitoring];
我的网址如下: http://10.4.67.32:5959
我在该端口上运行了一个节点服务器,但是可达性总是告诉我NO。
我做错了什么?