I need to block Ip addresses in command prompt, I'm sick of having extra firewall to do the job.
I already know how to view connections with netstat
but I need to know how to go further and block some connections, thanks.
I may not be correct but I am not aware of what you want to do actually being possible without a firewall. I've not heard of command line blocking of IP's directly using native Windows commands.
Do you know what connections you need to block? Can you provide an example?
A firewall will be the easiest method to be honest.
you could add a static route to the ip you are trying to block, and direct it to an ip that doesnt exist. no where near as effective as a firewall though
Dependant on the operating system you may be able to enable TCP/IP filtering.
Windows NT/2000/XP and up do not require a separate firewall software.
TCP/IP filtering is included w/ the OS. However the implementation, for some reason, allows applications to open ports when logged on with sufficient user privileges.
... however if you insist on using 'command prompt' to accomplish; there is no internal command to do this. Must be some utility IF it exists. ...so perhaps check the manual?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.