Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11412

Expose Openfire to internet for outside connections, what ports needed?

$
0
0

Hi,

 

I am writing a little web client that is supposed to connect to an Openfire server hosted on one of my machines. For this, I think, I need to expose openfire on this machine "to the internet". My gateway is a cable modem/router, and the machine sits behind this.

 

What ports do I need to forward in this gateway to my local machine?

 

So far, I have forwarded TCP port 5222 of the gateway to 5222 on the server machine. However, I can't connect to the server, using for example, Xabber, on my android phone.

 

What I can do, is connect to the server from within the local network the server is on.

 

For example, the server is a-PC, so, if I want to use Xabber on my network, I use username@a-PC as the jid and I can connect.

 

However, if I try to connect from a phone that is not on the local network, using username@1.2.3.4, where 1.2.3.4 would be my gateway's global ip, i cant connect, even though Ive forwarded port 5222 of the gateway to 5222 of a-PC. Other services, such as the bosh service, ARE available from outside at 1.2.3.4:7070, however I dont think I need to use my own bosh here as I am using this one http://bosh.metajack.im:5280/xmpp-httpbind in my app at the moment.

 

What else do I need to do to expose the server running on a-PC to the internet, so I can connect from outside my network?

 

Thanks for any help and input!

 

Regards,


Chris


Viewing all articles
Browse latest Browse all 11412

Trending Articles