I have written a simple network program on java using sockets. Program has a client and a server.
When user types a word on client side, server simply return this word to client.
On server side I use Serversocket and bind it to port 4444. Why does not firewall block this connection on my server PC?
I ask this question because earlier I wrote this program using corba technology, and firewall on my server PC was blocking the connection to this port; when I disabled the firewall the program worked fine.
My first guess is that your firewall is only blocking well known and/or well known and registered ports.
Check out this wikipedia article. To test this, have your program bind to a well known port and / or a registered port that is not in use in your environment.