Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
steelspace #1
Member since Mar 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: File transfer - proxy problem
Hi, I have a problem to send files via proxy.
1. It works file on local network
2. File receive works fine
3. Send file to another network doesn't work

I use sample code from MiniClient, so the file transfer works fine up to the part where the ByteStreamIq is sent. I tried several proxies with the same result.
I never get the response from the server on this Iq. I just get another Iq result to OnIq with an older Id.
Anyone has a clue what;s wrong?
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
can you post your debug xml please?
Alexander Gnauck
AG-Software
Avatar
steelspace #3
Member since Mar 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
SEND: <iq xmlns="jabber:client" id="agsXMPP_28" to="private@disk.jabbim.cz/jdisk" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="9f59edef-1bb9-44ee-8f36-229c6ba0da35"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="ICON.png" size="5248"><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="private@disk.jabbim.cz/jdisk" to="xeus@jabber.cz/MiniClient" type="result" id="agsXMPP_28"><si xmlns="http://jabber.org/protocol/si"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field type="list-single" var="stream-method"><value>http://jabber.org/protocol/bytestreams</value></field></x></feature></si></iq>

SEND: <iq xmlns="jabber:client" id="agsXMPP_29" to="private@disk.jabbim.cz/jdisk" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="9f59edef-1bb9-44ee-8f36-229c6ba0da35"><streamhost jid="xeus@jabber.cz/MiniClient" host="192.168.5.18" port="1000" /><streamhost jid="xeus@jabber.cz/MiniClient" host="192.168.192.1" port="1000" /><streamhost jid="xeus@jabber.cz/MiniClient" host="192.168.27.1" port="1000" /><streamhost jid="proxy.netlab.cz" host="proxy.netlab.cz" port="7777" /></query></iq>

RECV: <iq xmlns="jabber:client" from="private@disk.jabbim.cz/jdisk" to="xeus@jabber.cz/MiniClient" type="result" id="agsXMPP_29"><query xmlns="http://jabber.org/protocol/bytestreams" mode="tcp"><streamhost-used jid="proxy.netlab.cz" /></query></iq>

SEND: <iq xmlns="jabber:client" id="agsXMPP_30" to="proxy.netlab.cz" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="9f59edef-1bb9-44ee-8f36-229c6ba0da35"><activate>private@disk.jabbim.cz/jdisk</activate></query></iq>

and that's it
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
for some reason the proxy does not activate the bytestream.
I will try o debug this and see if i can reproduce the problem with the proxyserver from your log.
Did you debug the SOCKS5 code which connects to the proxy? Is everything ok there?

Alex
Alexander Gnauck
AG-Software
Avatar
steelspace #5
Member since Mar 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
I am not sure.
Avatar
Alex #6
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

i just send files from the latest MiniClient example to a exodus client over our proxy at proxy.ag-software.de without problems.
I also tried proxy.netlab.cz without problems.
I can send you the froms of my MiniClient, but i am sure that the code is exactly the same as in the latest release.

Alex
Alexander Gnauck
AG-Software
Avatar
steelspace #7
Member since Mar 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Thanks for your effort Alex. I will ask out network admin, if there is something blocked in out network.
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 SDK Support RSS