Have you ever wanted to create an IRC server like GameSurge?
Setting up UnrealIRCD on Windows
Let’s first install it on a UnrealIRCd Windows box.
For installing UnrealIRCd on Windows, download it from unrealircd.com/download/Unreal3.2-beta2.zip.Window users should skip the ./Config and other sections and just read the UnrealIRCd configuration section. It’s pretty much the same for both the operating systems. Just copy the example.conf from /doc directory to your main directory. Rename this directory as unrealircd.conf and double click on wircd.
UnrealIRCd configuration
Type the following:
#cp doc/example.conf unrealircd.conf ‘copies doc/example.conf to the parent directory as unrealircd.conf
Now open a text editor to edit the unrealircd.conf file and make the following changes. Unlike the other Unreal configuration files, the unrealircd.conf contains all the required information. The file is coded in C/C++ format and is not compatible with previous versions.
me
{
name “irc.RickAstley.net”; /*Name by which the server should be recognized */
info “RickAstleyFanClub”; /*Description of the server */
numeric 1; /*Sends server token instead of server name to save bandwidth when linked to other IRC servers*/
};
admin {”Bob Barker”; /* Name of the admin */
“Bob”; /* Nick name of the admin */
“RickAstley@HolyCrudItsRickAstley.com”; /* email id. of the admin */
};
Starting IRC
In /*Server specific configuration */, you need to change the kline-address value to a valid email id.
kline-address “RickAstley@HolyCrudItsRickAstley.com”;
Change the DNS entry to the one that corresponds to your machine.
dns {
nameserver 127.0.0.1; /*IP address of the server to connect to */
timeout 2s; /* Timeout if it cannot resolve address of the server within 2 secs. */
retires 2s; /* Retry connecting to the server after 2 secs. */
};
Now that we are finished making the configuration file, We are going to start our IRC server. It’s not recommended to run IRCd as root. So create another user id “cbca” using linuxconf utility. You can even use ‘adduser’ for adding users.
We need to assign the ownership of “Unreal” directory to “cbca”
#chown -R cbca.cbca /Unreal3.2
Login to “cbca” and goto Unreal3.2 directory.
#./src/ircd
Above command will open the unrealircd.conf file and check it for errors. If none are found, it will only prepare to boot IRCd and not actually boot it.
To boot/start IRCd, type
#./ircd ‘Starts ircd process
#ps -ux ‘Checks whether IRCd service has been started or not
There might be possibility, that port 6667 may be used by some other service. In such a case, edit unrealircd.conf and remove all lines that have port 6667 written against them. If you follow the instructions in this article, then you can connect to 127.0.0.1, port 8067.
Save the file and rehash it using the following command:
#./rehash
Once you make changes to the configuration file, you need to reload it. With Unreal, you can use the rehash command to reload the configuration file only and not the entire service.
Image via Wikipedia












One Response
Thanks dude! That really helped me!