LAN messaging with XMPP protocol (jabber) to chat or to copy and paste links and texts in rdp sessions
Here is how I satisfied my need to have a LAN messaging program, not really to chat with other users on the same LAN, which I could do, but to copy and paste links or texts between a rdp client and a rdp server when copy and paste from/to clipboard does not work in rdp sessions, for instance with some Android rdp clients.
These are the programs I used:
- Openfire 3.9.3 on the "server" (which can be a simple Windows pc): a realtime collaboration server using XMPP/Jabber
- Miranda IM 0.10.23.0: a multi-protocol instant messaging client
- Xabber 0.9.30b: an Android Jabber client
Openfire can be downloaded with the installer, which includes Java JRE, or as a zip file to extract in your preferred location (my choice), but you have to install Java JRE separately if you haven't already done it.
After installation, just run openfire.exe from the
bin folder every time you need to chat, or if you prefer you can install the Openfire Windows service, running
openfire-service /install from the
bin folder (in a cmd prompt).
The first time you launch Openfire you have to provide a bunch of settings like domain (computer name), port, encryption, the type of database, the admin password. Openfire stores data in a database, the simplest solution is to choose the embedded db. By the way, the documentation is clear and short, so if you have some doubts take a look there.
When launched, a window and a systray icon will appear. Openfire administration console can be launched from the Openfire window or the Openfire system tray icon or pointing the browser at
These are the necessary things to setup in Openfire for our chat test:
- Create the users (and maybe the groups) from the administration console (I suggest one for each device, just to test): login as
adminwith the password you provided during the first setup and from the top and left menus create the users that you want.
I set user "s2" for my Android device and user "wam2" for my pc (to be configured in Miranda IM); "WAM2" is also my computer name running Openfire and its IP address is 192.168.0.16.
- Create a chat room, again from the admin console, choosing Group chat from the top menu.
conference.wam2is the name of Openfire service for chat rooms running on
privateis the name I gave to the chat room, which is hosted on that service.
Miranda IM supports AIM, GG, ICQ, IRC, Jabber, MSN and Yahoo!, and it has many many options, so I will show here only those needed for Jabber configuration.
- These are the Options settings, under Network, Jabber, and Accounts settings, where to set the username and password of one of the Jabber users set in Openfire and the IP address of the computer running Openfire:
- And here is where to enter the chat room:
- Conference server must coincide with the service name set in Openfire Group Chat, and Room must coincide with the room name set in Openfire Group Chat; Nick name could be different than the username, and Password is the chatroom password set in Openfire Group Chat (if you didn't leave it blank).
- Done (double click the chatroom name to join):
First, download and install Xabber from Google Play Store.
- Add a new account and set user (user@serveripaddress) and password, and you should see it online and connected:
- Then enter the chatroom: menu, Other, Join conference.
The Chat server must coincide with the service name set in Openfire Group Chat, and Conference must coincide with the room name set in Openfire Group Chat; Nick could be different than the username, and Password is the chatroom password set in Openfire Group Chat (if you didn't leave it blank). If you don't uncheck Join conference, you will join the chatroom immediately.
The green gauge indicates that you have joined the chatroom; you can leave and join a chatroom by long-pressing its name to show a context menu with the appropriate actions.
Everything is set, let's test if the chat is working.
Open the chatroom in Xabber tapping it, write a message and you'll see it in Miranda IM on your pc; answer from Miranda IM and you'll see the answer in Xabber:
In Openfire admin console you can check the open sessions (under Sessions menu) and a chatroom's logged in users (under Group Chat menu).
Ok, now you can chat on your LAN with your computer, phone or tablet.
If you're connected to a remote computer in your LAN from another computer or device and your rdp client doesn't support copy and paste between the local and remote sessions and you need to share a link between them, now you can do it using the chat. Additionally, if you send a link from your pc to your Android device, with Xabber you could just tap the link to open it. At the same way, if you send (or even share through Xabber) a link from your Android device to your pc, you can click it in Miranda IM to open it.
Talking about copy and paste, if you need a good keyboard for your Android device, with the Ctrl button always available for faster Ctrl+C and Ctrl+V, I would recommend Hacker's Keyboard: