Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Page: previous  1  2  3  4  5  6  7  next
Avatar
scharfed #76
Member since Jul 2006 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 1282
Yes, I was able to fix the issue.  The problem was with our file transfer proxy.  It is not configured correctly, so we need to fix that.  Thanks for the help :)
Avatar
scharfed #77
Member since Jul 2006 · 33 posts
Group memberships: Members
Show profile · Link to this post
What is needed when configuring a file transfer proxy?
Avatar
Alex #78
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
we use the wildfire server which has a build in proxy. There you have only to configure the domain of the proxy.

Alex
Avatar
Michael.ly #79
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: about Ip and port of the Proxy server!!!
Hello !
about Ip and port of the Proxy server!!!
----------------------------------------
---------------<IQ 1>------------------
<iq xmlns="jabber:client" id="agsXMPP_7" to="item5@lixt/" type="set">
<query xmlns="http://jabber.org/protocol/bytestreams" sid="3119ca25-a214-4504-9c36-af423c3fd750">
<streamhost jid="item3@lixt/MiniClient" host="192.168.1.97" port="1000" />
<streamhost jid="proxy.ag-software.de" host="proxy.ag-software.de" port="7777" />
</query></iq>
---------------<IQ 2>------------------
<iq xmlns="jabber:client" from="item3@lixt/MiniClient" to="proxy.ag-software.de" id="activate" type="set">
<query xmlns="http://jabber.org/protocol/bytestreams" sid="mySID">
<activate>item5@lixt/MiniClient</activate>
</query>
</iq>
---------------<IQ 3>------------------
<?xml version='1.0' encoding='UTF-8'?>
<stream:stream from="ag-software.de" id="YHI76" xmlns="jabber:client" xmlns:stream="null" version="1.0">
<stream:error xmlns:stream="http://etherx.jabber.org/streams">
<bad-namespace-prefix xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>
</stream:stream>
---------------<SocketException>------------------
System.Net.Sockets.SocketException : ????????????????.
remote host force close an existing connection
---------------------------------------------------------
My question :
1. agsXMPP Server send IQ2 to "proxy.ag-software.de"(83.165.34.23:5269) and client2(receiver) when it receive IQ1 from client1(sender) ,but agsXMPP Server was received IQ3, Why? Would you help me!

2.if agsXMPP Server send IQ2 to "proxy.ag-software.de"(83.165.34.23:7777)  ,it throw SocketException. and why?
I'm working on it
This post was edited on 2013-03-06, 19:08 by Alex.
Avatar
Jabberer #80
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Quote by Michael.ly:
---------------<IQ 1>------------------
<iq xmlns="jabber:client" id="agsXMPP_7" to="item5@lixt/" type="set">
<query xmlns="http://jabber.org/protocol/bytestreams" sid="3119ca25-a214-4504-9c36-af423c3fd750">
<streamhost jid="item3@lixt/MiniClient" host="192.168.1.97" port="1000" />
<streamhost jid="proxy.ag-software.de" host="proxy.ag-software.de" port="7777" />
</query></iq>

this IQ is wrong because the to address is not a valid Jid (resource part).

Quote by Michael.ly:
---------------<IQ 2>------------------
<iq xmlns="jabber:client" from="item3@lixt/MiniClient" to="proxy.ag-software.de" id="activate" type="set">
<query xmlns="http://jabber.org/protocol/bytestreams" sid="mySID">
<activate>item5@lixt/MiniClient</activate>
</query>
</iq>

your from address looks like it on an internal test server. The Jid does not contain a valid domain name. This means you will never be able to use our proxy server from this internal server without working s2s connections.

Quote by Michael.ly:
My question :
1. agsXMPP Server send IQ2 to "proxy.ag-software.de"(83.165.34.23:5269) and client2(receiver) when it receive IQ1 from client1(sender) ,but agsXMPP Server was received IQ3, Why? Would you help me!

why are you connecting on port 5269? This is the s2s port for server to server connection. Never use this port for peer to peer file transfers.
Software Developer
AG-Software
This post was edited on 2013-03-06, 19:09 by Alex.
Avatar
Michael.ly #81
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
sample: Proxy Server : wildfire (192.168.1.223 or zhangxj);  Server : agXMPPServer.
---------------<IQ 1>------------------
<iq xmlns="jabber:client" from="item6@lixt/MiniClient" to="proxy.zhangxj" id="activate" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="acd78742-39e9-4c06-afaf-d22559823e86"><activate>item9@lixt/MiniClient</activate></query></iq>

---------------<IQ 2>------------------
<?xml version='1.0' encoding='UTF-8'?><stream:stream from="zhangxj" id="9067v" xmlns="http://etherx.jabber.org/streams" xmlns:stream="null" version="1.0">
<stream:error xmlns:stream="http://etherx.jabber.org/streams">
<bad-namespace-prefix xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>
</stream:error></stream:stream>
_____________________________________

My question :

1. agsXMPP Server IQ2 when it were sent IQ1 to "proxy.zhangxj" ,where was the error?
 Would you help me!
I'm working on it
This post was edited 2 times, last on 2013-03-06, 19:09 by Alex.
Avatar
Alex #82
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

i have no idea what you are doing. I have never seen a server which answers an IQ with an stream header. There must be some very strange stuff in your code.
Did you look at the MiniClient sample which has working file transfer code?

Alex
Avatar
Michael.ly #83
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: File can't  transfer...
I publish agsXmppServer to internet (ex : agsXmppServer  IP: 20.1.125.65)

1. My two MiniClient of intranet can file transfer each other
2. My one MiniClient of intranet can't file transfer to other  MiniClient of internet(IP of the computer is 192.168.1.118,its dns server is 20.1.125.65 )
3. My one MiniClient of intranet can't send file to  other  MiniClient of internet(IP of the computer is 20.1.125.65 ),but
    the MiniClient of internet can send file to my MiniClient of intranet.

ok,I used wildfire and Pandion test ,
I publish wildfire and client1 of the Pandion to internet(IP: 20.1.125.65), and localhost dns server is  "202.96.128.68"
my client2 of the localhost can't send file to client1 too.

why? thanks for help first !
I'm working on it
This post was edited on 2006-10-24, 04:48 by Michael.ly.
Avatar
Alex #84
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
If one client is in the internet i assume it is behind a NAT or firewall. If this case you have to forward ports and/or open the firewall or use a bytestreams proxy. WIth a bytestreams proxy you can transfer files even if both clients are behind NAT and firewalls which don't block outgoing traffic.

Alex
Avatar
Michael.ly #85
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Quote by Alex:
If one client is in the internet i assume it is behind a NAT or firewall. If this case you have to forward ports and/or open the firewall or use a bytestreams proxy. WIth a bytestreams proxy you can transfer files even if both clients are behind NAT and firewalls which don't block outgoing traffic.

Alex

My host which connect to internet don't use NAT ,my client don't setup firewall and  firewall of the server have to open the port('5222','5223','5269','7777'),but however don't file transfer.Why?Would you help me!
I'm working on it
This post was edited on 2006-10-24, 09:07 by Michael.ly.
Avatar
Jabberer #86
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
i have no idea what you are doing wrong.
Please post your debug XML from the sending client.
Software Developer
AG-Software
Avatar
Michael.ly #87
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
-------------------------------sender-----------------------------
SEND: <presence xmlns="jabber:client"><status /><priority>10</priority></presence>

RECV: <presence xmlns="jabber:client" from="item1@ecjy.com" to="item3@ecjy.com" />

SEND: <iq xmlns="jabber:client" id="agsXMPP_6" to="item1@ecjy.com/" type="set"><si
xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer"
id="2f47397e-f6c8-41c0-ad40-2cb99320be4d"><file xmlns="http://jabber.org/protocol/si/profile/file-
transfer" name="daemon.log" size="213740"><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="item1@ecjy.com/MiniClient" to="item3@ecjy.com/MiniClient"
type="result" id="agsXMPP_6"><si xmlns="http://jabber.org/protocol/si" id="2f47397e-f6c8-41c0-ad40-
2cb99320be4d"><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 xmlns="jabber:client" id="agsXMPP_7" to="item1@ecjy.com/MiniClient" type="set"><query
xmlns="http://jabber.org/protocol/bytestreams" sid="2f47397e-f6c8-41c0-ad40-
2cb99320be4d"><streamhost jid="item3@ecjy.com/MiniClient" host="192.168.1.97" port="1000"
/><streamhost jid="proxy.ag-software.de" host="proxy.ag-software.de" port="7777" /></query></iq>

-------------------------------receiver-----------------------------

SEND: <presence xmlns="jabber:client"><status /><priority>10</priority></presence>

RECV: <presence xmlns="jabber:client" from="item3@ecjy.com" to="item1@ecjy.com" />

RECV: <iq xmlns="jabber:client" from="item3@ecjy.com/MiniClient" to="item1@ecjy.com/MiniClient" type="set" id="agsXMPP_6"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="2f47397e-f6c8-41c0-ad40-2cb99320be4d"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="213740" name="daemon.log"><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 xmlns="jabber:client" id="agsXMPP_6" to="item3@ecjy.com/MiniClient" type="result"><si xmlns="http://jabber.org/protocol/si" id="2f47397e-f6c8-41c0-ad40-2cb99320be4d"><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" to="item3@ecjy.com/MiniClient" type="result" id="agsXMPP_6"><si xmlns="http://jabber.org/protocol/si" id="2f47397e-f6c8-41c0-ad40-2cb99320be4d"><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="item3@ecjy.com/MiniClient" to="item1@ecjy.com/MiniClient" type="set" id="agsXMPP_7"><query xmlns="http://jabber.org/protocol/bytestreams" sid="2f47397e-f6c8-41c0-ad40-2cb99320be4d"><streamhost port="1000" jid="item3@ecjy.com/MiniClient" host="192.168.1.97" /><streamhost port="7777" jid="proxy.ag-software.de" host="proxy.ag-software.de" /></query></iq>
I'm working on it
This post was edited on 2013-03-06, 19:09 by Alex.
Avatar
Jabberer #88
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
can both clients connect to proxy.ag-software.de on port=7777 ?
Did you try it with another proxy than ours on proxy.ag-software.de ?
Did you debug the code which setups the file transfer socket?
Software Developer
AG-Software
Avatar
Michael.ly #89
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #86
client of sender is in the localhost. Its IP is 192.168.1.97 ,external IP is 202.96.128.68.

client of receiver is in the external network,Its IP is 61.145.126.212.

agsXmppServer IP is 61.145.126.212.
I'm working on it
Avatar
Michael.ly #90
Member since Oct 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #88
Quote by Jabberer:
can both clients connect to proxy.ag-software.de on port=7777 ?
Did you try it with another proxy than ours on proxy.ag-software.de ?
Did you debug the code which setups the file transfer socket?

sometimes ok.
another proxy?
I'm working on it
This post was edited on 2006-10-24, 11:12 by Michael.ly.
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:
Page: previous  1  2  3  4  5  6  7  next
Forum: agsXMPP RSS