Flex with XMPP and openfire - Can receive but can not send message

137 views
Skip to first unread message

Pratik Patel

unread,
Jul 9, 2012, 3:52:33 AM7/9/12
to flex_...@googlegroups.com
Hello Everyone here.
I have some problems in flex development.

I am working on simple chatting application,
currently Its on very first phase. 

The problem with my simple application is, application successfully gets connected to openfire server (I am using XIFF library).
And also receives message from server (when other user sends message using spark app)
but my app can not send message to the server/opposite user.
It shows "remote-server-not-found" error. 

But same app works on local computer, when I use openfire installed in local machine(127.0.0.1).

What can be the reason? because if it can not find server, then how is it connecting and receiving message? (It has problem only in sending message)
so what is the reason? and what is solution for it?


=========my this event handler alerts commented lines========
private function onXiffError(event:XIFFErrorEvent):void
{
Alert.show("onXiffError. " + event.toString());
      /*
       onXiffError. [XIFFErrorEvent type="error" bubbles=false cancelable=false eventPhase=2]
       */

Alert.show("onXiffError.errorMessage: " + event.errorMessage);
      /*
       onXiffError.errorMessage: remote-server-not-found
       */
}
==================================================

please guide me. 
Thanks in advance.

Pratik Patel

unread,
Jul 10, 2012, 9:29:19 AM7/10/12
to flex_...@googlegroups.com
Harsad Thanks for reply.

I have attached my application code. 

Let me explain my issue again.

I have made sample chat application, for browser.
I have installed openfire server on two computers, on localhost and on another computer too.
my IPs are 127.0.0.1 and 192.168.1.72
IP for another computer is 192.168.1.78

If I use IP of my (same) computer, Application words fine (where as for chat other client is connected to server using spark app)

But If I use IP of another computer, my flax app connects to it (192.168.1.78) and also It can receive message from another client(spark client)
but It can not send message to another client. shows error as mentioned in previous post. "Remote-Server-not-found"


What can be the reason?
Because It can receive message, but only fails in sending message.

Please Guide me where I am wrong?
Is there anything related to ports/firewall?
FlexXMPP.zip
Reply all
Reply to author
Forward
0 new messages