2

I want to block a certain IP address at my firewall which is connected to my PC, but I don't know what it looks like.

Is there any way I can see a list of all IPs having connections with my PC?

So far I tried netstat -b -n in the command line, but from the list I get the only one showing appears to be the IP of a server that I don't want to block.

0

3 Answers 3

9

Yes, there is. A command-line approach to this is using netstat. See this how-to.

netstat is very similar to using netstat on Unix-based systems, by the way, so this applies not only for Windows.

6
  • thanks. And to block the IP I use the hosts file, right?
    – Alex
    Sep 14, 2012 at 23:06
  • 4
    @Alex For blocking IPs you use a firewall. Host files are about resolving named addresses.
    – gertvdijk
    Sep 14, 2012 at 23:10
  • 1
    ok i found out this thing: forums.eukhost.com/f15/how-block-ips-using-windows-3638/…
    – Alex
    Sep 14, 2012 at 23:25
  • 1
    @Alex by default windows 7 firewall blocks all unsolicited attempts to connect to you PC, unless the ip is requested to make a connection from your end, this could be done a legitimate program or malware doing this. Exceptions can be made in the windows firewall program itself, you might see what exceptions are there.
    – Moab
    Sep 14, 2012 at 23:36
  • well, here's the full story: gaming.stackexchange.com/questions/83384/… :(
    – Alex
    Sep 14, 2012 at 23:38
1

So I found out after all his IPs. Some guy HostBot from USEast posted this link.

Here's how to do it:

  • start => cmd
  • type "mmc"
  • file => add/remove snap-in
  • select from the left "ip security policy manager", add it to the right and type ok
  • now from the console root, right click "ip security..." and select "Create ip security policy", next, next, finish
  • click "add" in the edit screen of your policy, and in the "ip filter lists" screen add a new filter.
  • add new IPs to the list; leave the Source address as "any Ip address" and the destination must be "a specific Ip address or submask", where u enter each of the following:

    24.44.109.0/16
    67.81.254.0/16
    67.86.123.0/16
    
    • click ok, save all settings, then right click policy => assign...
1
  • Those addresses in the link are not /16. They are /32. a /16 is over 65,000 addresses
    – Sirex
    Sep 18, 2012 at 0:07
0

Or you can also just install netcut, which is a program used for checking your "network security" (says in the app description), so you will list all IP-s on your network and easily cut 'em.

(uses a special command that disables the network protocol of the device you cut)

You won't exactly kick them, but you will block the user from using the data of the connection.

For an example, I live in a dorm and the speed is 5-10Kb/s, so I use netcut and boost up my network by cutting others, the speed jumps to 200Kb/s...

1
  • Warning - please do not use obscenities in your posts. I've removed it for you. Note that other users may have flagged your post as "rude or abusive" leading to possible rep loss or suspension. Please read Be Nice: "Avoid vulgar terms and anything sexually suggestive".
    – DavidPostill
    Apr 26, 2016 at 9:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .