How to manually close a tcp/udp port in XP?

Discussion in 'Operating Systems' started by FreshPrince, Mar 14, 2004.

  1. FreshPrince

    FreshPrince Diamond Member

    Joined:
    Dec 6, 2001
    Messages:
    8,363
    Likes Received:
    0
    Does anyone how how to close a port manually in XP?

    there's got to be a command line command that does this.

    thx!

    -FP
     
  2. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    You can't, you might be able to find something to inject a RST packet into a TCP stream which will make the remote end think your end closed the port but that will most likely really confuse the local end. Ideally you just need to find out what app has the port open and kill that.

    And UDP is connectionless so there's no equivalent to an RST packet.
     
  3. PrincessGuard

    PrincessGuard Golden Member

    Joined:
    Feb 5, 2001
    Messages:
    1,435
    Likes Received:
    0
  4. rbrandon

    rbrandon Banned

    Joined:
    Oct 10, 2002
    Messages:
    423
    Likes Received:
    0
  5. spyordie007

    spyordie007 Diamond Member

    Joined:
    May 28, 2001
    Messages:
    6,229
    Likes Received:
    0
    run the built-in firewall

    If there is an application that is opening a port the best way to close the port is by means of that application, if it doesnt give you the option (which most dont) your best route is simply going to be to remove access to that port (firewalling it off).