Results 1 to 2 of 2

Thread: Block a Local Port

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    1

    Block a Local Port

    I need your help.If anybody can give me the solution of my Query that is:- I want to block a local port so that no service can run on this port.like if I want to stop ftp service on my computer then I'll have to block port no:21 but ques is how? How I can stop this service from running.If you have some code snippet for this or some other dll or exe to whom I can send the coomand with a port number then plz send it to [email protected]

    Thanks

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    If you want to stop a service (FTP, MAIL) then you can use the net command:
    [Highlight=VB]
    net stop "Name of the service"
    [/vbocde]
    run that in a dos-box or use the SHELL command from VB.
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width