1.

Solve : Was wondering...?

Answer»

I was just wondering if there is any way a .bat file could kick a certain IP address that's connected to your wireless router off of it. If there is a way could some one post the code I would extremely appreciate it.Hi,

What are your trying to achieve???

Do you want to ban an IP address from your home router??? - this would be easier to ban it via the router's web GUI.

Or,

Do you want to open a batch file, input a IP address and then have the batch file remove that IP from your network. ie, not allow it any access at all. - I'm not sure if this is possible via batch.

If you've got a router you'd have to find a way to import commands to it (not sure if that possible not knowing the type of router you have), if this is a work based question and you've got a domain with Active Directory it can be archived, but with a VBScript.


Let use know what camp your in.

 

You didn't mention an OS, however if you have access to the netsh command try:

Code: [Select]netsh int ip delete xxx.xxx.x.x

Replace the x's with the IP address in question.

Good luck. Thanks for the HELP. And to answer any asked questions, I'm running on Windows XP Service Pack 2 Home Edition, what I'm trying to achieve is removing my neighbors from my router and hogging all of my bandwidth. SideWinder, Thanks for the line of code but sadly it did not work, it says "The following command was not found: int ip delete XXX.XXX.X.X".(I did replaced the X's with the IP)I may have been a bit hasty with netsh command. It can be helpful but maybe not in these circumstances.

Quote

what I'm trying to achieve is removing my neighbors from my router and hogging all of my bandwidth.

Can you not put some security on your network? WPA or WPA2 recommended but even WEP is BETTER than none at all.

Note: In many PLACES your neighbor can be charged with theft of services which is a felony. In the US, I'm sure it's against some provision or other of the Homeland Security Act.

Good luck.

I've tried time and time again to set up the wireless security but every time for some reason it messes up and ends up locking its self down and then I have to reset it.do you require the wireless features, or are you connecting to an available port on the router? If so you could simply disable the wireless portion of the router.The router is down stairs and I'm upstairs in my loft so that wouldn't work, if there was any working cable plug ins in my loft I would use those INSTEAD of wireless. Thanks for the suggestion though.Do you know which neighbors are stealing your connection? if so you could try to "block" your router from their wireless CARDS, with metal or something- It might not get rid of them entirely, but their signal will be drastically reduced.you could use MAC address filtering and then only the machines you've added will be able to connect to the router.

(it's what I use)

tbh, you do need some sort of sercurity other wise your open all sorts of nasty things!!!!



Discussion

No Comment Found