Setup File Transfer using Openfire and Psi+

222 views
Skip to first unread message

Arief Wijaya

unread,
Sep 19, 2019, 3:56:47 PM9/19/19
to Psi-Users
I have never been successful in file transfers and have tried various methods but nothing has worked. I've installed Openfire  in Intranet Server. So this is basically for Intranet Only.

In Openfire 4.4.1, I Set :
- Enable File Transfer Proxy and open port 7777
- xmpp.proxy.externalip  (I've tried with ip address or domain name, but nothing has worked)
- xmpp.proxy.enabled = true
- xmpp.proxy.transfer.required = false

In Psi+ Client v1.4.877 (2019-09-13, Psi:6a5b8dc1, Psi+:95425f1), I've tried:
- In Band Data transfer in Misc Account Settings
- using proxy 7777 Data Transfer in Misc Account Settings
- Data Transfer Base Port in Options
- Data Transfer External Address in Options
- Using Proxy and Not

Here is the log in OpenFire: (pdap002.xxx.com is my OpenfireServer)

2019.09.20 02:34:33 WARN [pool-30-thread-5]: org.jivesoftware.openfire.net.SocketUtil - Unable to create a socket connection to XMPP domain '7777' using remote host: 7777:5269. Cause: Network is unreachable: connect (a full stacktrace is logged on debug level)
2019.09.20 02:34:33 WARN [pool-30-thread-5]: org.jivesoftware.openfire.net.SocketUtil - Unable to create a socket connection to XMPP domain '7777': Unable to connect to any of its remote hosts.
2019.09.20 02:34:33 INFO [pool-30-thread-5]: org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: pdap002.xxx.com to 7777] - Unable to create new session: Cannot create a plain socket connection with any applicable remote host.
2019.09.20 02:34:33 WARN [pool-30-thread-5]: org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: 'pdap002.xxx.com' to remote domain: '7777'] - Unable to authenticate: Fail to create new session.


I'm little bit confused what does Unable to create a socket connection to XMPP domain '7777' using remote host: 7777:5269. Since 5269 is Server to server connection and im using Client to server connection. Also why it said XMPP domain '7777' using remote host: 7777:5269 ? My domain is pdap002.xxx.com . So it should be pdap002.xxx.com:7777.
 Does it means wrong host? Where to configure it?

And here is PSI+ Client XML Log:

<iq id="ab80a" type="get" to="proxy.pdap002.xxx.com">
</iq>


<iq id="ab81a" type="get" to="7777">
</iq>


<iq id="ab82a" type="set" to="ynug...@pdap002.xxx.com/SCM-17080">
<jingle xmlns="urn:xmpp:jingle:1" initiator="ari...@pdap002.xxx.com/CMD-14100" action="session-initiate" sid="000b9b">
<content creator="initiator" name="fileoffer_2d88" senders="initiator">
<description xmlns="urn:xmpp:jingle:apps:file-transfer:5">
<file>
<date>2019-09-18T08:55:43</date>
<hash xmlns="urn:xmpp:hashes:2" algo="sha-1">2jmj7l5rSw0yVb/vlWAYkK/YBwk=</hash>
<media-type>image/jpeg</media-type>
<name>install1.JPG</name>
<size>14140</size>
<range/>
<thumbnail xmlns="urn:xmpp:thumbs:1" uri="cid:sha1+ba405d19b2c79f97b...@bob.xmpp.org" height="64" width="64" mime-type="image/png"/>
</file>
</description>
<transport xmlns="urn:xmpp:jingle:transports:s5b:1" block-size="8192" sid="s5b_5d3d">
<candidate priority="8257536" host="fe80::1d5c:b34d:2c5d:81cc" cid="37d2" port="62073"/>
<candidate priority="8257536" host="10.38.105.46" cid="4d29" port="62074"/>
</transport>
</content>
</jingle>
</iq>


<iq id="ab80a" type="result" to="ari...@pdap002.xxx.com/CMD-14100" from="proxy.pdap002.xxx.com">
<streamhost host="10.35.2.199" jid="proxy.pdap002.xxx.com" port="7777"/>
</query>
</iq>


<iq id="ab81a" type="error" to="ari...@pdap002.xxx.com/CMD-14100" from="7777">
<error code="404" type="cancel">
<remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>


<iq id="ab82a" type="result" to="ari...@pdap002.xxx.com/CMD-14100" from="ynug...@pdap002.xxx.com/SCM-17080"/>


<iq id="ab83a" type="set" to="ynug...@pdap002.xxx.com/SCM-17080">
<jingle xmlns="urn:xmpp:jingle:1" action="transport-info" sid="000b9b">
<content creator="initiator" name="fileoffer_2d88">
<transport xmlns="urn:xmpp:jingle:transports:s5b:1" sid="s5b_5d3d" dstaddr="0037903e73d03982d85cfc4460b4557a3c50cb3f">
<candidate priority="655360" host="10.35.2.199" jid="proxy.pdap002.xxx.com" type="proxy" cid="6e10" port="7777"/>
</transport>
</content>
</jingle>
</iq>


<r xmlns="urn:xmpp:sm:3"/>


<a xmlns="urn:xmpp:sm:3" h="35"/>


<a xmlns="urn:xmpp:sm:3" h="29"/>


<iq id="ab83a" type="result" to="ari...@pdap002.xxx.com/CMD-14100" from="ynug...@pdap002.xxx.com/SCM-17080"/>

How to make it work?
Thanks!

Sergey Ilinykh

unread,
Sep 19, 2019, 4:26:23 PM9/19/19
to psi-...@googlegroups.com
HI Alief

I believe you confused something with OpenFire settings. I can't tell yo what exactly since I never tried to setup it myself.
but from the log I guess you start xmpp proxy service on some specific interface:port. And a port where it will listen for socks5 connecton is likely set by some other settings.
besides xmpp.proxy.externalip setting most likely means you can manually configure port forwarding for your nat, so any connections to the external IP:specific_port will be redirected to your socks5_proxy_service:socks5_port.

Regarding direct connections within clients in the same network I think firewall may cause problems. 

Best Regards,
Sergey


чт, 19 сент. 2019 г. в 22:56, Arief Wijaya <ariefw...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Psi-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psi-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psi-users/ca7f585a-fa6f-4003-8b4f-ea065a3c7c19%40googlegroups.com.

Arief Wijaya

unread,
Sep 19, 2019, 9:30:09 PM9/19/19
to Psi-Users
Thanks Rion by your quick reply,

I have limited access to configure NAT, before i've tried Psi and it can do file transfer using In Band, but the problem is, i need to use proxy to connect with an intranet account.
Now, I'm using Psi+, it can connect without proxy, but the problem is I cannot transfer any file, even In band doesnt work. I have no idea what is the differences between psi and psi+ regarding to the file transfer.

Also Firewall doesnt block the connection.

Do you have another way to make it work ? Any help is appreciated.

is it possible to use http upload?, I cannot see http upload plugin in My Psi+.

PS. i'm using portable version of Psi+. Because I have limited access to install in Computer office. Thanks.

Sergey Ilinykh

unread,
Sep 20, 2019, 1:55:50 AM9/20/19
to psi-...@googlegroups.com
"http upload" implementation was moved inside of Psi. Basically you just drag'n'dop files to chat diaog and they are uploaded.

I need more xml logs to figure ut whats wrong. Your first email has just very beginning of the file transfer session.  

Best Regards,
Sergey


пт, 20 сент. 2019 г. в 04:30, Arief Wijaya <ariefw...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Psi-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psi-users+...@googlegroups.com.

Arief Wijaya

unread,
Sep 20, 2019, 8:06:34 AM9/20/19
to Psi-Users
Hi Thanks for help, PSI+ is most powerful XMPP client which have many features, especially the mini game. But, I think there is a bug when we try on Intranet Server which does'nt have Internet (Local). My problem is only when transfer file using Psi+ . So, I have moved to Spark and the transfer file has worked. Simple but urgently needed for the functionality in our intranet. I hope we can use Psi+ after the problem gone. Thanks for reply.


On Friday, September 20, 2019 at 12:55:50 PM UTC+7, Rion wrote:
"http upload" implementation was moved inside of Psi. Basically you just drag'n'dop files to chat diaog and they are uploaded.

I need more xml logs to figure ut whats wrong. Your first email has just very beginning of the file transfer session.  

Best Regards,
Sergey


пт, 20 сент. 2019 г. в 04:30, Arief Wijaya <ariefw...@gmail.com>:
Thanks Rion by your quick reply,

I have limited access to configure NAT, before i've tried Psi and it can do file transfer using In Band, but the problem is, i need to use proxy to connect with an intranet account.
Now, I'm using Psi+, it can connect without proxy, but the problem is I cannot transfer any file, even In band doesnt work. I have no idea what is the differences between psi and psi+  regarding to the file transfer.

Also Firewall doesnt block the connection.

Do you have another way to make it work ? Any help is appreciated.

is it possible to use http upload?, I cannot see http upload plugin in My Psi+.

PS. i'm using portable version of Psi+. Because I have limited access to install in Computer office. Thanks.

--
You received this message because you are subscribed to the Google Groups "Psi-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psi-...@googlegroups.com.

Sergey Ilinykh

unread,
Sep 20, 2019, 8:09:04 AM9/20/19
to psi-...@googlegroups.com
I believe I need your help to reproduce it, because it works for me. I'll try to install Openfire though and check its proxy.

Best Regards,
Sergey


пт, 20 сент. 2019 г. в 15:06, Arief Wijaya <ariefw...@gmail.com>:
To unsubscribe from this group and stop receiving emails from it, send an email to psi-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psi-users/cd7f4e23-0316-4425-b711-ff53d88c1c3f%40googlegroups.com.

Arief Wijaya

unread,
Sep 20, 2019, 8:14:53 AM9/20/19
to psi-...@googlegroups.com
Oh ok I will help, what can i do for you ? 

Please use the portable version, bcause I'm not using the installer, just  a portable version of  Psi+ Client v1.4.877 (2019-09-13, Psi:6a5b8dc1, Psi+:95425f1)

Sergey Ilinykh

unread,
Sep 20, 2019, 8:32:50 AM9/20/19
to psi-...@googlegroups.com
Oh I just reproduced it. I'll let you know when fixed.

Best Regards,
Sergey


пт, 20 сент. 2019 г. в 15:14, Arief Wijaya <ariefw...@gmail.com>:

Arief Wijaya

unread,
Sep 20, 2019, 8:55:52 AM9/20/19
to Psi-Users
You found the problem ? Ok thanks 

--
You received this message because you are subscribed to the Google Groups "Psi-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psi-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Psi-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psi-...@googlegroups.com.

Boris Pek

unread,
Sep 20, 2019, 9:22:51 AM9/20/19
to psi-...@googlegroups.com
Hi,

> So, I have moved to Spark and the transfer file has worked. Simple but urgently needed for the functionality in our intranet. I hope we can use Psi+ after the problem gone.

Alternatively you may user Psi+ 1.4.554 -- the last version before huge changes related to file sharing were done in Psi+ core. A lot of improvements were done since that time, but not all regressions are fixed yet, unfortunately...

Best wishes,
Boris

Reply all
Reply to author
Forward
0 new messages