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

    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.

    Thats funny

  2. #2
    Join Date
    Apr 2000

    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.


    cksiow - 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