CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Posts
    5

    Block Ports from incoming and Outgoing Data

    How would I open some port(s) and listen but not accept any connections. Kind of like a firewall program. like port 80(http). So the user couldn't go to http's.
    thanks

    Thats funny

  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Block Ports from incoming and Outgoing Data

    what u need to do is just not to listen to the port 80. or if you want to selectively let only some ip go thru, the winsock should have a connect event that will be trigger when user connect to your port. if you found that it's not support to connect to you, the close the connection immediately.

    HTH

    cksiow
    http://vblib.virtualave.net - share our codes


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

Featured