Results 1 to 3 of 3

Thread: Block TCP ports with VB

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    ON, Canada
    Posts
    8

    Question Block TCP ports with VB

    how do i go about blocking tcp ports in vb6. I want to write a program, that will block various ports, such as http port, messenger port, etc... so that if a command button is pressed it will block a given port# until a button is clicked to unblock the port. thanks

    Nathan

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    Look for more info on GetTcpTable and SetTcpEntry APIs

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    ON, Canada
    Posts
    8
    I find that if i use the winsock control, and set the port with:

    winsock1.localport = 8080

    it errors with the message:
    "address in use"

    any suggestions?

    Thanks,
    Nathan

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