Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to block ip's in windows command prompt

Status
Not open for further replies.

PHHeisel

Technical User
Nov 28, 2004
17
US
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.

'When all else fails.......read the manual'
 
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? [bigglasses]



Amiel Summers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top