After hours of debugging, i realised that Openfire doesn’t always act as a proxy for file transfers( although i enabled it), more specifically, it doesn’t act as a proxy when the clients (sender and receiver) are in the same network. Is there a way i can force openfire to act always as a proxy for file transfers?
Hi. First of all I have to admit that my answer was based purely on “I-have-never-seen-it-done-other-way” thing and I’m absolutely no expert in xmpp - I started playing with xmpp-related programming only a week ago. But, again, according to this: http://www.xmpp.org/extensions/xep-0065.html#usecase first shot is always to try connect directly. If you take a look here http://www.xmpp.org/extensions/xep-0065.html#proto-inform IMO it turns out that cutting out clients own ip:port from the query should be enough to force transfer via proxy, so this can be done on server side or on (initiator)client side. Other thing is why in the world do you need it to be done this way?
The reason i want the server to always act as a proxy is because i’m working on improving the audit plugin (actually creating a new one) and i’m trying to intercept the files also.