nplexity / xmpp-file-transfer-demo

iOS demo application using XMPPFramework for file transfer.
43 stars 24 forks source link

transfer success on a same wifi, fail on 4G or different networks #28

Open lionsom opened 8 years ago

lionsom commented 8 years ago

the sender in the wifi , the receive in 4G send file failed. it's the outcoming’s log and the receive's log below.

2015-12-22 19:22:32.468 pirate[789:225573] XMPPOutgoingFileTransfer:startFileTransfer 2015-12-22 19:22:32:471 pirate[789:e6b] 4-SEND: Baal's Soulstone, obviously. 2015-12-22 19:22:32:765 pirate[789:e6b] 3-RECV: http://jabber.org/protocol/bytestreams 2015-12-22 19:22:32:772 pirate[789:4f3f] 4-SEND: 2015-12-22 19:22:32:777 pirate[789:4f3f] 3-RECV: 2015-12-22 19:22:32:782 pirate[789:5a43] 4-SEND: 2015-12-22 19:23:32.784 pirate[789:225573] XMPPOutgoingFileTransfer:failWithReason 2015-12-22 19:23:32:786 pirate[789:b07] Outgoing file transfer failed with error: Error Domain=GCDAsyncSocketErrorDomain Code=2 "Invalid host parameter (nil or ""). Should be a domain name or IP address string." UserInfo={NSLocalizedDescription=Invalid host parameter (nil or ""). Should be a domain name or IP address string.}

the incoming’s log:

2015-12-22 19:26:22:377 pirate[789:5a67] 3-RECV: 2015-12-22 19:26:22:381 pirate[789:4937] 4-SEND: 2015-12-22 19:26:22:606 pirate[789:4937] 3-RECV: Baal's Soulstone, obviously. 2015-12-22 19:26:22:613 pirate[789:e73] 4-SEND: http://jabber.org/protocol/bytestreams 2015-12-22 19:26:23:629 pirate[789:5a67] 3-RECV:

my server: mod_proxy65: host: “proxy.auto.hooca.com.cn" name: ”file transfer proxy” ip: “192.168.0.25” hostname: “140.206.XX.XX” port: 7777 shaper: proxy_shaper

yasiriqbal commented 8 years ago

Same here! any solution?

lionsom commented 8 years ago

@yasiriqbal sorry, i don't solve the problem.

yasiriqbal commented 8 years ago

I have solved this problem! There were a lot of BUGS in framework code for file transfer! Still it didn't perfectly work for me! I was successful to transfer file using proxy server (not peer to peer) because there is only TRUN implementation not STUN. Now I have started working on WEBRTC to transfer file using RTCDataChannel!