Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Was wondering...  (Read 3424 times)

0 Members and 1 Guest are viewing this topic.

DarkendHeart

    Topic Starter


    Beginner

    Thanked: 1
    Was wondering...
    « on: June 30, 2008, 12:09:29 AM »
    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.

    blastman



      Hopeful

      Re: Was wondering...
      « Reply #1 on: June 30, 2008, 04:09:51 AM »
      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.

       :)


      Blastman, you are the man. Thank You Very Much!!!!!!!!!



      Sidewinder



        Guru

        Thanked: 139
      • Experience: Familiar
      • OS: Windows 10
      Re: Was wondering...
      « Reply #2 on: June 30, 2008, 07:26:49 AM »
      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. 8)
      The true sign of intelligence is not knowledge but imagination.

      -- Albert Einstein

      DarkendHeart

        Topic Starter


        Beginner

        Thanked: 1
        Re: Was wondering...
        « Reply #3 on: June 30, 2008, 12:30:00 PM »
        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)

        Sidewinder



          Guru

          Thanked: 139
        • Experience: Familiar
        • OS: Windows 10
        Re: Was wondering...
        « Reply #4 on: June 30, 2008, 02:56:16 PM »
        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. 8)

        The true sign of intelligence is not knowledge but imagination.

        -- Albert Einstein

        DarkendHeart

          Topic Starter


          Beginner

          Thanked: 1
          Re: Was wondering...
          « Reply #5 on: June 30, 2008, 05:01:29 PM »
          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.

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Was wondering...
          « Reply #6 on: June 30, 2008, 06:50:53 PM »
          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.
          I was trying to dereference Null Pointers before it was cool.

          DarkendHeart

            Topic Starter


            Beginner

            Thanked: 1
            Re: Was wondering...
            « Reply #7 on: June 30, 2008, 07:27:51 PM »
            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.

            BC_Programmer


              Mastermind
            • Typing is no substitute for thinking.
            • Thanked: 1140
              • Yes
              • Yes
              • BC-Programming.com
            • Certifications: List
            • Computer: Specs
            • Experience: Beginner
            • OS: Windows 11
            Re: Was wondering...
            « Reply #8 on: June 30, 2008, 07:35:16 PM »
            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.
            I was trying to dereference Null Pointers before it was cool.

            blastman



              Hopeful

              Re: Was wondering...
              « Reply #9 on: July 01, 2008, 02:53:48 AM »
              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!!!!


              Blastman, you are the man. Thank You Very Much!!!!!!!!!