fisrt question where are you trying to connect to ?an out side server or your own box ?

second question whats the message saying when you try to connect is it saying something like to no route to host or connection failed

third question are you sure the port is open when you try to connect

be a little more specific and maybe i could help