Now we are getting somewhere.
I entered the following commands to turn off the firewall
$ sudo /etc/init.d/iptables save
$ sudo /etc/init.d/iptables stop
Then voila!!! I can access the server from my PC.
Then when I entered the following command to turn the firewall back on
$ sudo /etc/init.d/iptables start
the shirt hit the fan and I got the "Connection has timed out" error.
So how do I set the firewall to allow access to the server?