How to know port is block..

My server is running on a port 16386, in the case when this port is blocked by some other application ( anti virus etc. ) or firewall then how do i know it's block? Is bind will return any specific error in this case.
I have to know is it blocked or not?

Blocks don't typically prevent you from binding to a port, it just prevents any clients from connecting to that port successfully. Run a quick client check to that port and see if it succeeds? Try localhost and the external IP address.

The obvious way is that connect() will always timeout on filtered ports while you'll get connection refused from unbound service ports.
Of course, that's too obvious, but is a start. Take a look at the code for something like nmap for heuristics.