# ./ircserv <port> <password>
./ircserv 9191 test
# nc -C <ip> <port>
# `-C` tells nc to send CRLF (`\r\n`) line terminations
# `-c` tells nc to send CRLF (`\r\n`) line terminations **MacOS only**
nc -C localhost 9191
# PASS provides our password
PASS test
# we provide our chosen nickname
NICK netcat
# we tell the server our username `ncname`
USER netcat 8 * :ncname
# we should receive a welcome message now
# :0.0.0.0 001 netcat :Welcome to the IRC server!
timeout for getting disconnected is 60 seconds
# ping from server for timeout
PING netcat
# respond to server
PONG
PRIVMSG <nick/#channel> :<message>
# send a message to the client with the nickname bob
PRIVMSG bob :Hello, World!
# send a message to the channel `potato-lovers`
PRIVMSG #potato-lovers :Hello, World!
# located at `~/.irssi/config`
# copy config after launching irssi the first time (to create ~/.irssi directory)
cp ./config ~/.irssi/config
# irssi -c <ip> -p <port> -w <password>
irssi -c localhost -p 9191 -w test
# user one sends a PRIVMSG offering up the file to user two
/dcc SEND Bob filename
# user two accepts the file from user one
/dcc GET Alice
# get the commands available
!help
Feature | Command in nc |
Command in irssi |
---|---|---|
Join/Create channel | JOIN #<channel> |
/join #<channel> |
Set channel invite only | MODE #<channel> +i |
/mode #<channel> +i |
Kick user from channel | KICK #<channel> <user_nick> |
/kick #<channel> <user_nick> |