Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
shantheepan #1
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
Subject: Trouble in FileTransfer
Hi Alex,

I'm trying to create file transfer functionality in my agsXmpp client, after the hard try of yesterday I decided to use MiniClient code, But I got this XML,

//Sender
RECV: <iq xmlns="jabber:client" from="proxy.ag-software.de" to="client1@192.168.0.39/MiniClient" type="error" id="agsXMPP_12"><query xmlns="http://jabber.org/protocol/bytestreams" sid="51ad3e7f-53ea-44af-aa9c-5bf9ffa390e6"><activate>shantheepan@192.168.0.39/MiniClient</activate></query><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
SEND: <iq id="agsXMPP_10" to="shantheepan@192.168.0.39/MiniClient" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="fb5.jpg" size="12947"><range /></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>
RECV: <iq xmlns="jabber:client" from="shantheepan@192.168.0.39/MiniClient" to="client1@192.168.0.39/MiniClient" type="result" id="agsXMPP_10"><si xmlns="http://jabber.org/protocol/si" id="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field var="stream-method"><value>http://jabber.org/protocol/bytestreams</value></field></x></feature></si></iq>
SEND: <iq id="agsXMPP_11" to="shantheepan@192.168.0.39/MiniClient" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><streamhost jid="proxy.ag-software.de" host="proxy.ag-software.de" port="7777" /></query></iq>
RECV: <iq xmlns="jabber:client" from="shantheepan@192.168.0.39/MiniClient" to="client1@192.168.0.39/MiniClient" type="result" id="agsXMPP_11"><query xmlns="http://jabber.org/protocol/bytestreams"><streamhost-used jid="proxy.ag-software.de" /></query></iq>
SEND: <iq id="agsXMPP_12" to="proxy.ag-software.de" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><activate>shantheepan@192.168.0.39/MiniClient</activate></query></iq>


//Receiver
SEND: 
RECV: <iq xmlns="jabber:client" from="client1@192.168.0.39/MiniClient" to="shantheepan@192.168.0.39/MiniClient" type="set" id="agsXMPP_10"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="12947" name="fb5.jpg"><range /></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>
SEND: <iq id="agsXMPP_10" to="client1@192.168.0.39/MiniClient" type="result"><si xmlns="http://jabber.org/protocol/si" id="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field var="stream-method"><value>http://jabber.org/protocol/bytestreams</value></field></x></feature></si></iq>
RECV: <iq xmlns="jabber:client" from="client1@192.168.0.39/MiniClient" to="shantheepan@192.168.0.39/MiniClient" type="set" id="agsXMPP_11"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5e793830-e0f8-4d6b-8c36-724ecfd514e8"><streamhost port="7777" jid="proxy.ag-software.de" host="proxy.ag-software.de" /></query></iq>
SEND: <iq type="result" to="client1@192.168.0.39/MiniClient" id="agsXMPP_11"><query xmlns="http://jabber.org/protocol/bytestreams"><streamhost-used jid="proxy.ag-software.de" /></query></iq>
SEND:

I couldn't identify the error. please help me...
This post was edited on 2011-10-05, 10:57 by shantheepan.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you use proxy.ag-software.de as file transfer proxy. This is our private proxy and is not public. You have to install your own proxy or use other public file transfer proxies.

A proxy is needed when 2 clients are not able to create a peer to peer connection because they are behind a firewall.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
and yo use IP addresses for your xmpp domain which is a very bad idea. Also your IP address is an internal one, which means you are no able to talk to a public bytestreams proxy on the internet.

Alex
Avatar
shantheepan #4
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
hmm... thank you Alex... now I got the idea... and this is for local network only so its enough to use IP(I think so).
Avatar
Alex #5
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in the local network you need no proxy at all. When teh sending client advertises a streamhost with his own IP then it should work fine. The MiniClient should do that already.

Alex
Avatar
shantheepan #6
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
Yes Alex... now only I got the concept fully... Its working fine... Thanking  you for your guide...
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS