I need to implement chat application between a mobile user and a desktop application
but I wouldn't use xmpp protocol between mobile and open fire, it's another technology more secure so I would like to develop a connector to open fire which is an intermediate between mobile and open fire server
please tell me if it 's possible to do this and if you have any suggestion tell me please.
You need to create your own Connector to be able to relay between your server and an XMPP server. http://code.google.com/p/xmppjca/
Related
i am using this tutorial as guide. i am creating an android app which is basically chat application. this uses socket programming to communicate .
i want to connect directly to device and deliver the message. the message does not go to server. server only tell me the address of the device thats it.
i followed the tutorial i mentioned above and this only works for the case where client and server are within same wifi/network. i want to connect to server from client irrespective of their network connection place. how do i do it from any network to any network.
i think i need to use port forwarding , but this is not practical . so we better use a server for keeping track of all the ip changes. and deliver the messages directly from the source to client. so how do i do it. please suggest any resources.
update
as of now what i studied is i have to use innetaddress to communicate if i am inside an wifi router.
thank you
By looking to this URL I know we can connect to XMPP server using this link
Good XMPP Java Libraries
but I want to create my Own XMPP server, currently we have Openfire, tigase and many other Servers available. but is there any Libraries and tutorial are available for making an XMPP server from scratch?
I want to make a server that can handle all web, client application, Android and iOS requests (for Chat and other purpose).
WebChat is perfect for this . You will have to download Openfire Server which is open source XMPP Server , then install Webchat over it , which will provide a web based interface to chat . You can use Android WebView to customize look and feel in an Android application
I recently developed an VOIP app on android device. But it lacks of acrossing wlan capability. One UDP connection was established between two client phone in the same lan. The two phone client was communicated via its ipv4 address directly. But now I'm wandering that how could they talk to each other over the wlan? They maybe stay behind the firewall. I was talked that Openfire has the Media Proxy functionality which could be the agent to transfer data. But I cannot find any example of this feature. Could you please give me any advice? Thanks very much. Sincerely.
I assume you have implemented a Jingle client. In order to make this work you should make sure that:
Openfire (acting as a Media Proxy as well) is running on a computer with a
public IP, so that each client behind any NAT can "talk" to it
Your client media engine does support symmetric RTP
To enable Media Proxy in Openfire is simple as going to Openfire server web console (usually at openfirehost:9090/index.jsp), select tab "Media Services", set the option "Enabled" at "Media Proxy Settings" and then click on "Save Settings".
PS: My Openfire version is 3.9.1
I'm wondering if it is possible to host an Application Server on Google App Engine, I'm not planning to host a Web Application, but yes an App Server.
For example, hosting a Chat Server, that would Authenticate users log ins, register new users, establish a connection between two users running on clients developed to work with that Server.
If not, is there a similar service to GAE which I can use for that purpose.
Thanks a lot.
The XMPP and Channel APIs should let yo do it. If your client can make HTTP requests and your server can respond to them, then yes, you should be able to do it.
Yes this is possible.
Have a look at the Google Docs for an introduction to what the platform looks like and what APIs are available. And crucially what restrictions there are. For chat applications you might be interested in the Channel API.
I am now trying to do a project which is, there will be a server on windows pc and there are some clients on android devices.The point is the server one should control the android devices.For example it choose a image or video, send them to the clients and the clients play or show them.Remember the clients should be control by the server.
So could anyone tell me a proper way to do that, which protocol should i use, how do i send the files to the clients and how do the clients react? I am thinking of using java for the server and of course the client will use android application.
Thank you.
You might find Cloud to Device Messaging (c2dm) useful: http://code.google.com/android/c2dm/index.html
In essence, c2dm allows a remote server to send an Intent to an Android app. The device-side app can then respond to that intent to take the requested action. Chrome2phone works this way to open web links on a target device. http://code.google.com/p/chrometophone/