in reply to chatterbox like server app
Jabber? If you want your chatterbox app to be accessible to everyone then it will have to work over port 80. And if you already have a webserver running on the machine where you are going to host the app then your only option is to make it a webserver app, like CGI or whatever.
Anyway, as you have already guessed a chat app is not as straightforward to build as it may seem on first sight. But there are plenty of free chat apps available on the net and even chat services you can use.