-1

How do I connect to openfire server as a client ? I have installed openfire on my machine and want to connect to the server from another machine.

Both the machines are on the same LAN. Basically I want to create a new user by signing up.

saplingPro
  • 20,769
  • 53
  • 137
  • 195

2 Answers2

1

It is depend on client api. I used smack. In smack API, you can use org.jivesoftware.smack.ConnectionConfiguration for connection.

The default port is 9090 for the web-based admin console of open-fire server.

http://127.0.0.1:9090

Try as below example :

    ConnectionConfiguration config = new ConnectionConfiguration("localhost", 5222);
    connection = new XMPPConnection(config);

Smack Getting Started

Update You need to plugin to Openfire Server for User Service.

Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131
0

@saplingPro I think there is a confusion about what OpenFire is.

Openfire is an open-source XMPP server.

This means it provides the means to handle XMPP protocol connections. Those would be done by "chat client implementations" . But the server does not provide the implementation itself, only the backend for that. If you are looking for a webchat, you can take a look at this:

https://rocket.chat/

julianm
  • 2,393
  • 1
  • 23
  • 24