---
title: Openfire Server Configuration
description: This blog talks about configuring Openfire Server on Windows and Linux machines.
image: https://blog.e-zest.com/hubfs/blog-files/openfire-server-configuration-1.png
---

[![e-Zest logo\_An accion lab company\_Colour](https://blog.e-zest.com/hubfs/images/Logos%20with%20Tagline/Corporate/SVG/e-Zest%20logo_An%20accion%20lab%20company_Colour.svg "e-Zest logo_An accion lab company_Colour")](https://www.e-zest.com/)

- [WORK](https://www.e-zest.com/our-work)
- [SERVICES](https://www.e-zest.com/our-services) 
    - [Product Engineering](https://www.e-zest.com/digital-product-engineering-services)
    - [Enterprise Data Services](https://www.e-zest.com/enterprise-data-services)
    - [Digital Commerce](https://www.e-zest.com/digital-commerce-services)
    - [Digital Operations](https://www.e-zest.com/digital-operations)
    - [Digital Consulting](https://www.e-zest.com/digital-transformation-consulting-services)
    - [Digital Experience Design](https://www.e-zest.com/digital-experience-design)
- [INSIGHTS](https://blog.e-zest.com/)
- [CAREERS](https://www.e-zest.com/careers)
- [ENTERPRISE DATA SERVICES](https://www.e-zest.com/enterprise-data-services)
- [GENERATIVE AI](https://www.e-zest.com/generative-ai)
- [Healthcare](https://healthcare.e-zest.com)
- [Contact Us](https://www.e-zest.com/contact-us)

- ![Elevating Product Engineering with AI and ML](https://blog.e-zest.com/hubfs/Elevating%20Product%20Engineering%20with%20AI%20and%20ML.jpg)

  [BLOGS](https://blog.e-zest.com)
  
  #### Elevating Product Engineering with AI and ML

  As technology evolves and customer choices broaden, there is an increasing ...

  [Read more](https://blog.e-zest.com/elevating-product-engineering-with-ai-and-ml)
- ![e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024](https://blog.e-zest.com/hubfs/e-Zest%20%E2%80%93%20An%20Accion%20Labs%20Company%20-%20Gets%20Recognition%20as%20a%20Contender%20in%20the%20ISG%20Provider%20LensTM%20Study%20on%20Digital%20Engineering%20Services%202024.jpg)

  [NEWS](https://blog.e-zest.com/news)
  
  #### e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024

  We are delighted to announce that e-Zest – An Accion Labs Company has been ...

  [Read more](https://blog.e-zest.com/news/e-zest-an-accion-labs-company-gets-recognition-as-a-contender-in-the-isg-provider-lens-study-on-digital-engineering-services-2024)
- ![e-Zest Solutions supports Digital Pune Mission](https://blog.e-zest.com/hubfs/blog-files/Digital%20Literacy%20Bus%20e-Zest.png)

  [CSR](https://blog.e-zest.com/csr)
  
  #### e-Zest Solutions supports Digital Pune Mission

  **Pune, India:** e-Zest Solutions, a leading digital technology innovation ...

  [Read more](https://blog.e-zest.com/csr/e-zest-solutions-supports-digital-pune-mission)

- [Work](https://www.e-zest.com/our-work)
- [Services](https://www.e-zest.com/our-services)
- [Insights](https://blog.e-zest.com)
- [Careers](https://www.e-zest.com/careers)
- [Enterprise Data](https://www.e-zest.com/enterprise-data-services)
- [Generative AI](https://www.e-zest.com/generative-ai)
- [Innovations](https://www.e-zest.com/innovations)
- [Healthcare](https://healthcare.e-zest.com)
- [About](https://www.e-zest.com/about-us)
- [Contact](https://www.e-zest.com/contact-us)

- [Blog](https://blog.e-zest.com/)
- [News](https://blog.e-zest.com/news)
- [CSR](https://blog.e-zest.com/csr)

- [![Linkedin Icon](https://blog.e-zest.com/hubfs/icons/linkedin_icon_white.svg)](https://www.linkedin.com/company/e-zest-solutions/)
- [![Twitter Icon](https://blog.e-zest.com/hubfs/twitter-logo-silhouette%20(5).svg)](https://twitter.com/ezest)
- [![Facebook Icon](https://blog.e-zest.com/hubfs/facebook-app-logo%20(4).svg)](https://www.facebook.com/61259256638)
- [![Instagram Icon](https://blog.e-zest.com/hubfs/instagram-logo%20(4).svg)](https://www.instagram.com/ezestsolutions/)
- [![Youtube Icon](https://blog.e-zest.com/hubfs/icons/youtube_icon_white.svg)](https://www.youtube.com/user/ezestcorporate)

[![Go to top icon](https://blog.e-zest.com/hubfs/AA%20Assets/top%20button.svg)](https://blog.e-zest.com/openfire-server-configuration#top)

Hit enter to search or ESC to close

Insights

e-Zest members share technology ideas to foster digital transformation.

- [Blog](https://blog.e-zest.com)
- [News](https://blog.e-zest.com/news)
- [Podcasts](https://www.e-zest.com/podcasts)
- [Healthcare](https://blog.e-zest.com/healthcare)
- [CSR](https://blog.e-zest.com/csr)
- [Whitepaper](https://blog.e-zest.com/whitepaper)
- [Playbook](https://blog.e-zest.com/playbook)
- [Media Kit](https://www.e-zest.com/media-kit)

# Openfire Server Configuration

[Manasi Jahagirdar](https://blog.e-zest.com/author/manasi-jahagirdar)  Dec 31, 2015

[Technology](https://blog.e-zest.com/topic/technology)

- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/openfire-server-configuration&title=&summary=&source=>
- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/openfire-server-configuration&text=Openfire%20Server%20Configuration>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/openfire-server-configuration>
- <https://www.instagram.com/ezestsolutions/?u=https://blog.e-zest.com/openfire-server-configuration>

**What is Openfire?**

Openfire is a real time server, licensed under the Open Source Apache License. It uses the widely adopted open protocol for instant messaging, which is XMPP (also known as Jabber). Openfire is incredibly easy to set up and is also robust in terms of security and performance.

The latest version for the Openfire server can be downloaded from the link: [http://www.igniterealtime.org/downloads/](http://www.igniterealtime.org/downloads/)

**Where can it be used?**

We stumbled upon Openfire, while trying to develop an Instant Messaging application. This application required to have:

- Apache Tomcat 7
- Openfire 3.10.2
- Converse 0.9.4
- Strophe 1.0.2

**Installation and configuration:**

Openfire is an IM server that uses XMPP protocol (Ejabberd is another server, but after playing around with both the applications we found Openfire easier to setup). As a prerequisite, you must have a JDK in your machine

**A) Linux:**

Download the Openfire and untar it with the following command:

```
tar -xvzf openfire_3_8_1.tar.gz
```

Then, move the files to /opt:

```
mv openfire /opt/
```

Finally, add a link for the daemon script to /etc/init.d; and start the daemon with a call to service:

```
in -s /opt/openfire/bin/openfire /etc/init.d/
```

Now start the service with the following command:

```
service openfire start
```

If no errors were displayed, open the following URL in your browser: [http://localhost:909](http://localhost:909)<http://localhost:9090>

**B) Windows:**

Download the Windows installer, run the .exe file. Select install to a different directory and click ‘Next’. Click on Finish and Launch Admin Console to redirect to the URL: [http://localhost:9090](http://localhost:9090)<http://localhost:9090>

**Configuration of Openfire:**

If everything went OK, you should see the following wizard:

![openfire-server-configuration-1.png](https://blog.e-zest.com/hs-fs/hubfs/blog-files/openfire-server-configuration-1.png?width=750&height=352&name=openfire-server-configuration-1.png "openfire-server-configuration-1.png")

Click ‘Continue’ and configure your domain and ports for administration (you can keep the defaults and use localhost as the domain name).

In order configure Openfire and Converse with CORS support, we need to change the settings for BOSH in the Openfire server. In order to enable BOSH to be able to use converse.js, we need Openfire and another server to handle port 80 requests.

BOSH enables Converse to use http to translate the XMPP (not XAMPP) data between the Openfire server and the web browser where Converse.js is being called.

To configure Converse, include the url into the index.html of converse.

```
bosh_service_url:  http://172.51.31.88:7070/http-bind/
```

Also, create and establish a Strophe connection:

```
var connection = new Strophe.Connection(‘http://172.51.31.88:7070/http-bind/’)
```

The username is the one that was created in the previous step and the domain is “*localhost”*. If everything is OK, you should be able to connect.

Configuring BOSH

BOSH stands for Bidirectional-streams Over Synchronous HTTP. Basically, it is used to transport XMPP stanzas over HTTP. So, if you are planning to use your server with an XMPP Web client, you must configure BOSH (or websockets). In order to enable BOSH in Openfire, log in to the admin console and click on **Server-\> Server Settings-\> HTTP Binding**

Http-Bind should be configured with the following parameters:

![openfire-server-configuration-1.png](https://blog.e-zest.com/hubfs/blog-files/openfire-server-configuration-1.png "openfire-server-configuration-1.png")

![openfire-server-configuration-3.png](https://blog.e-zest.com/hs-fs/hubfs/blog-files/openfire-server-configuration-3.png?width=618&height=517&name=openfire-server-configuration-3.png "openfire-server-configuration-3.png")

Save the changes and run a test on Converse.

Connecting with Strophe.js

[Strophe](http://strophe.im/strophejs/) is an XMPP library for JavaScript which allows connecting from a Web browser to an XMPP server.

Download the latest [version](http://strophe.im/strophejs/) of this library and unzip it in your workspace. This package contains a couple of examples that can be used as reference e.g. Examples/basic.html. 

Before trying to connect, update the fileexamples/basic.js and change the BOSH URL as follows:

```
var BOSH_SERVICE = 'http://localhost:7070';
```

**Attaching External Database**

In case of Openfire already being installed,

Go to: \\Openfire\\conf\\openfire.xml

Edit the xml file in the following manner:

```
            
        org.jivesoftware.database.DefaultConnectionProvider
    
   false 
```

Hit the URL: [http://localhost:9090](http://localhost:9090)

This URL redirects to the setup procedure described above: Only change to make is, Select Standard Database Connection and continue.

Provide the database details and proceed with further installation of Openfire as described above.

**Please Note**: If already configured BOSH and Strophe, reconfiguration is not needed after connection to database.

**Configure Openfire to use SSL:**

Click the Security Settings link on the left. Under Client Connection Security, choose the required option to force jabber clients to use SSL (NOTE: If the client doesn’t support SSL and this option is enabled, the client will not be able to connect to the server). Click the Save Settings button.

![openfire-server-configuration-4.png](https://blog.e-zest.com/hs-fs/hubfs/blog-files/openfire-server-configuration-4.png?width=425&height=277&name=openfire-server-configuration-4.png "openfire-server-configuration-4.png")

Openfire SSL Certificates

Openfire creates self-signed SSL Certificates by default. If you ever want to access this administration console (port: 9091, by default) from a Secure Connection, then you’ll need to restart the Openfire HTTP Server.

Click the Server Certificates link on the left menu.

![openfire-server-configuration-5.png](https://blog.e-zest.com/hs-fs/hubfs/blog-files/openfire-server-configuration-5.png?width=425&height=291&name=openfire-server-configuration-5.png "openfire-server-configuration-5.png")

Click the link in the highlight section.

Openfire will restart the HTTP Web Server and redirect you to the login screen. Log back in and the SSL Certificate should now be in use and you can access the console from SSL.

**References:**

converse+openfire+strophe download: 

- [https://github.com/jcbrand/converse.js/releases](https://github.com/jcbrand/converse.js/releases)
- [http://www.igniterealtime.org/projects/openfire/](http://www.igniterealtime.org/projects/openfire/)
- [http://strophe.im/strophejs/](http://strophe.im/strophejs/)

Settings and configuration:

- [https://conversejs.org/docs/html/development.html#initialize](https://conversejs.org/docs/html/development.html#initialize)
- [https://conversejs.org/docs/html/configuration.html#allow-chat-pending-contacts](https://conversejs.org/docs/html/configuration.html#allow-chat-pending-contacts)
- [http://metajack.im/2009/12/14/fastest-xmpp-sessions-with-http-prebinding/](http://metajack.im/2009/12/14/fastest-xmpp-sessions-with-http-prebinding/)
- [https://expertnotfound.wordpress.com/2013/04/08/setting-up-openfire-bosh-strophe/](https://expertnotfound.wordpress.com/2013/04/08/setting-up-openfire-bosh-strophe/)
- [https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/ssl-guide.html](https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/ssl-guide.html)

- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/openfire-server-configuration&text=Openfire%20Server%20Configuration>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/openfire-server-configuration>
- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/openfire-server-configuration&title=&summary=&source=>

### Similar Blog

[![Managing a New Job in the Pandemic](https://blog.e-zest.com/hubfs/Managing%20a%20New%20Job2.jpg) Managing a New Job in the Pandemic A new job and a pandemic, well this has been my story so far. A recent graduate from Pune University, I was really happy when I ... By Sumedh Pathak Jun 01, 2020](https://blog.e-zest.com/managing-a-new-job-in-the-pandemic)

[![12 Technology Trends to watch for in 2020](https://blog.e-zest.com/hubfs/Technology%20Trends%202020-200108.png) 12 Technology Trends to watch for in 2020 Technology has evolved at an unimaginable pace in the last decade: what seemed futuristic and impossible until a few years ago is ... By Devendra Deshmukh Jan 10, 2020](https://blog.e-zest.com/12-technology-trends-to-watch-for-in-2020)

[![Horizon 2020: How technology is influencing human lives, and its impact on organizations](https://blog.e-zest.com/hubfs/blog-files/Horizon%202020_%20How%20technology%20is%20influencing%20human%20lives%2c%20and%20it%E2%80%99s%20impact%20on%20organisations.png) Horizon 2020: How technology is influencing human lives, and its impact on organizations As we step into a new decade, technologies across the board, from AI to cryptocurrency and online shopping are changing. We are ... By Devendra Deshmukh Dec 12, 2019](https://blog.e-zest.com/horizon-2020-how-technology-is-influencing-human-lives-and-its-impact-on-organisations)

[![5 core elements of a Design Checklist!](https://blog.e-zest.com/hubfs/blog-files/5%20Core%20Elements%20for%20A%20Design%20Checklist.png) 5 core elements of a Design Checklist! Every design project is unique, and every project has its unique outcomes based on what eventual customer experience we are ... By Corporate Jul 10, 2019](https://blog.e-zest.com/5-core-elements-of-a-design-checklist)

[![Installing Kubernetes cluster on Ubuntu 16.04](https://blog.e-zest.com/hubfs/blog-files/azure-devops.png) Installing Kubernetes cluster on Ubuntu 16.04 **Introduction:**Use of containers for deploying applications and micro-services has been a common practice widely. Orchestration of ... By Nikhil Garge Jun 26, 2019](https://blog.e-zest.com/installing-kubernetes-cluster-on-ubuntu)

[![Importing data from excel made easy: Jxls library](https://blog.e-zest.com/hubfs/blog-files/Importing-data-from-excel-made-easy-Jxls%20-library.jpg) Importing data from excel made easy: Jxls library Every application requires to upload or import data from an Excel sheet at some point of time. Different ways are used for ... By Manasi Jahagirdar Nov 07, 2017](https://blog.e-zest.com/importing-data-from-excel-made-easy-jxls-library)

## Helping Organizations Thrive in the Digital Age

[Contact Us](https://www.e-zest.com/contact-us)

- [About](https://www.e-zest.com/about-us)
- [Services](https://www.e-zest.com/our-services)
- [Work](https://www.e-zest.com/our-work)
- [Insights](https://blog.e-zest.com/)
- [Healthcare](https://healthcare.e-zest.com/)
- [Accion Labs](https://www.accionlabs.com/)

- <https://www.linkedin.com/company/e-zest-solutions/>
- <https://twitter.com/ezest>
- <https://www.facebook.com/eZest/>
- <https://www.instagram.com/ezestsolutions/>
- <https://www.youtube.com/user/ezestcorporate>

- Dallas
- Detroit
- Hannover
- Vienna
- London
- Pune

 © 2025 e-Zest Solutions

- [Privacy Policy](https://www.e-zest.com/privacypolicy)
- [Cookie Policy](https://www.e-zest.com/cookie-policy)

 Contact us

 Contact us

e-Zest is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.