tutorials/0127.html

81 lines
No EOL
4.2 KiB
HTML

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Roll Your Own LAN Instant Messaging Platform with OpenFire</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
<meta name="keywords" content="Instant Messaging,Pidgin,Self-Hosted,IM,XMPP,OpenFire,LAN">
<meta name="author" content="i12bretro">
<meta name="description" content="Roll Your Own LAN Instant Messaging Platform with OpenFire">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="includes/favicon.ico">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="includes/js/steps.js"></script>
<link href="css/steps.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="gridContainer">
<div class="topMargin"></div>
<div id="listName" class="topMargin">
<h1>Roll Your Own LAN Instant Messaging Platform with OpenFire</h1>
</div>
<div></div>
<div id="content">
<h2>XMPP Server Download and Installation</h2>
<ol>
<li>Download OpenFire <a href="https://www.igniterealtime.org/downloads/" target="_blank">Download</a></li>
<li>Run the OpenFire installer</li>
<li>A browser window should open to http://localhost:9090/setup/index.jsp</li>
<li>Select a language &gt; Click Continue</li>
<li>Set the XMPP domain name and input the server fully qualified domain name &gt; Click Continue</li>
<li>Select Embedded Database &gt; Click Continue</li>
<li>Select Default on the Profile Settings page &gt; Click Continue</li>
<li>Input an admin email address and password &gt; Click Continue</li>
<li>Click the Login to the admin console button</li>
<li>Login with username admin and the password created previously</li>
<li>Click the Users/Groups tab</li>
<li>Click Create New User in the left navigation menu</li>
<li>Create a username and password for the new user</li>
<li>Follow the steps to create as many users as needed, at least 2 are needed for testing</li>
<li>Click the Start Button &gt; Type Control Panel&nbsp; and select it</li>
<li>Click Windows Defender Firewall</li>
<li>Click Advanced settings in the left navigation menu</li>
<li>Select Inbound Rules &gt; New Rule...</li>
<li>Select Port &gt; Click Next</li>
<li>Select TCP and specify port 5222-5223 &gt; Click Next</li>
<li>Select Allow the Connection &gt; Click Next</li>
<li>Click Next &gt; Name the rule XMPP &gt; Click Finish</li>
<li>Select Outbound Rules &gt; New Rule...</li>
<li>Select Port &gt; Click Next</li>
<li>Select TCP and specify port 5222-5223 &gt; Click Next</li>
<li>Select Allow the Connection &gt; Click Next</li>
<li>Click Next &gt; Name the rule XMPP &gt; Click Finish</li>
</ol>
<h2>Setting Up A XMPP Client</h2>
<ol>
<li>Download Pidgin Portable <a href="https://portableapps.com/apps/internet/pidgin_portable" target="_blank">Download</a></li>
<li>Run the Pidgin Portable installer</li>
<li>Launch Pidgin Portable</li>
<li>Click Add...</li>
<li>Select XMPP from the protocol dropdown</li>
<li>Input the first username created above along with the XMPP domain setup in OpenFire and the user&#39;s password</li>
<li>Click the Advanced tab &gt; Select Use encryption if available from the Connection security dropdown</li>
<li>Enter the OpenFire fully qualified server name in the server field</li>
<li>Click the Add button</li>
<li>Click Accept on the self-signed certificate popup</li>
<li>Copy the extracted Pidgin Portable folder to another device</li>
<li>Launch Pidgin Portable on the second device</li>
<li>Select Modify Account</li>
<li>Update the username and password to be a different account from the previous device</li>
<li>From one of the devices, select Buddies &gt; Add Buddy</li>
<li>Input the opposite devices&#39;s username</li>
<li>On the second device accept the message request and the two devices should be able to send and receive instant messages using the OpenFire XMPP server</li>
</ol>
</div>
</div>
</body>
</html>