How should I deploy XMPP server GCM on java so as to GCM can reach it and send the message? - deployment

I have XMPP server on java, that has to receive messages from GCM server (now it is Firebase Cloud Messaging) I followed with this tutorial:
http://www.grokkingandroid.com/xmpp-server-google-cloud-messaging/
I have wi-fi router and I can not open any ports on it.
How should I deploy this server so as to GCM can reach it and send the message ?

Wi-fi router was not the problem, I don't need to open port for my server in order to GCM server will have possibility to send message to my App server
Library Smack https://ru.wikipedia.org/wiki/Smack solved all this questions
so I don't need to deploy my java server somewhere, it can be launched on my PC.

Related

Failed to connect to localhost/127.0.0.1:7443

Hi i am using openfire as my im server to my mobile app client, I have added the Httpfileupload plugin to openfire and enabled the http bind settings, when I try to upload a file it shows me this error Failed to connect to localhost/127.0.0.1:7443 ,
and the servers send me this XML message <get url="https://localhost:7443/httpfileupload/45726202-5e69-4b5c-a533-00d82f6d1121/4add76e7f15b6b4f.png"/>
I’ve tried to access this uri but it doesn’t work
please help me with this issues
i am using the latest smack version and the latest openfire version also
You appear to have set up Openfire using the value 'localhost' as its XMPP domain and/or fully qualified domain name for the server that is running Openfire. This is a recipe for disaster. Openfire is broadcasting the address of the content that is managed by its HTTP File Upload plugin, and uses the value that was configured, 'localhost'. Clients, which typically run on different machines, will try to connect to this host. As they're instructed to connect to 'localhost', they'll never be able to reach Openfire.
My advise is to setup Openfire again, and use proper, network-reachable addresses for values of the XMPP domain name and FQDN (these are asked for in the second page of the setup wizard, if memory serves).

Connect to C++ REST sdk SERVER on Windows from LAN

I have a server written on C++ REST SDK.
There's http_listener which listens to "http://localhost:34568".
When I try to send a request in browser or from the client to localhost it works fine and I get the responses from my server. But the point is to use the application in network. And here where the problem comes.
When I try to request the server from the other PC using IP(192.168.1.103:34568) I get "HTTP Error 400. The request hostname is invalid."
I'm aware that that could be some firewall issues but it's turned off. Also I tried to set port rules in brandmauer and it didn't help.
And even more! I got XAMPP running Apache server and when I do the same thing but with (192.168.1.103:80) I do get the response from Apache and have an access.
Anybody had something similar or somebody knows what the problem is about?
Listen to local ip address or to your network name (dns):
"http://xxx.xxx.xxx.xxx:34568" or
"http://your_network_name:34568"
So, if you have multiple network adapters, you can choose which one.

XMPP chat : Candy won't work with Ejabberd server

I want to setup a web chat client. I decided to use Candy. The XMPP server I'm using is Ejabberd. My Ejabberd server is local. The URL is :
http://localhost:5280/
Users are defined like this :
user#localhost
The thing is I can't connect to this server using Candy out of the box while I can connect to it with simple strophejs functions on my phone.
I compared the packets that were sent to the server and they are exactly the same :
On my phone using Wireshark :
The console log when I'm connecting with Candy :
The screen is pending on "Connecting..."
What can be the reason that I can't connect to the server ? Is there something I have to configure in ejabberd.cfg ?
Thanks for help
The default URL for BOSH on ejabberd is /http-bind
When configuring your BOSH client you should point to that directory on the correct web URL, not the ejabberd service root.
Using http://example.net:5280/http-bind as BOSH URL in your Web client configuration should work.

iOS App XMPP chat server requirements

We are planning to start a new iPhone chat app using XMPP. We didn't have any online VPS server now. We have a local server, on that openfire & XMPP is alredy installed. (We are using it for our local network chat on computers)
So my doubt is that can I start working on the iOS app with that local server now and later (after completing the app) is it possible to change to the online VPS server or need to start with online VPS server ?
Thanks in advance.
Its possible.
I started to develop the app on the local server by setting the xmppStrem hostName as the local server IP address.

How to send mail notification from jboss server after server down or stopped working?

I want to send mail b Jboss server when server down , stop working or there is any unexpected crash in server
If jboss is down then it can't send email. Because it is down
So you need to monitor it with a different system.
Nagios is a widely open source monitoring system http://www.nagios.org It has a lot of plugins that can be configured to monitor jboss according to your exact business needs