hi,大神,我根据该站提供的iosdemo代码,可以访问贵站自己的服务器,app可以正常使用,但是访问我自己搭建的ejabberd服务器,就总是超时,下面是日志。
client:
2018-08-26 22:51:03.751018+0800 MobileIMSDK4iDemo[81392:2824601] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/grace/Library/Developer/CoreSimulator/Devices/0C7D229F-0BF4-4579-A22B-D56C8F414F2C/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-08-26 22:51:03.751651+0800 MobileIMSDK4iDemo[81392:2824601] [MC] Reading from private effective user settings.
2018-08-26 22:51:24.609450+0800 MobileIMSDK4iDemo[81392:2824601] Reachability Flag Status: -R ------- networkStatusForFlags
2018-08-26 22:51:24.609738+0800 MobileIMSDK4iDemo[81392:2824601] ClientCoreSDK已经完成initCore了!
2018-08-26 22:51:24.611577+0800 MobileIMSDK4iDemo[81392:2824601] 【IMCORE】isLocalUDPSocketReady()==false,需要先resetLocalUDPSocket()...
2018-08-26 22:51:24.611975+0800 MobileIMSDK4iDemo[81392:2824601] 【IMCORE】正在closeLocalUDPSocket()...
2018-08-26 22:51:24.612381+0800 MobileIMSDK4iDemo[81392:2824601] 【IMCORE】Socket处于未初化状态(可能是您还未登陆),无需关闭。
2018-08-26 22:51:24.612688+0800 MobileIMSDK4iDemo[81392:2824601] 【IMCORE】new GCDAsyncUdpSocket中...
2018-08-26 22:51:24.614299+0800 MobileIMSDK4iDemo[81392:2824601] 【IMCORE】localUDPSocket创建已成功完成.
2018-08-26 22:51:24.614603+0800 MobileIMSDK4iDemo[81392:2824601] 【IMCORE】localUDPSocket尝试发出连接到目标主机47.92.54.93:5222的动作成功了.(此前isConnected?0)
2018-08-26 22:51:24.651000+0800 MobileIMSDK4iDemo[81392:2824601] 【UDP_SOCKET】成收到的了UDP的connect反馈, isCOnnected?1
2018-08-26 22:51:24.651364+0800 MobileIMSDK4iDemo[81392:2824601] 【UDP_SOCKET】tag为0的NSData已成功发出.
服务端: