You can search on the web and try a server-code from there - or you create your own.
A chat server is a classic on learning RMI, so I would probably load a code from the web and see if that works. If not - check if the server is running correctly and if your code is also working fine.
There is even an article here:
Java Chat With Customizable GUI[
^] which might work.