When I am adding this to iptabls it works
-A INPUT -p tcp --dport 100 -j DROP
But when I try changing the port number to the one i need nothing happens can anyone help?
I guess that you added your rule at the end of the INPUT (-A == APPEND) chain so probably another rule before allows the traffic. Try with something like that: