Results 1 to 4 of 4

Thread: OK EXPERTS! GIVE IT YOUR BEST SHOT!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Talking

    IF YOU CAN ANSWER THIS, PLEASE SEND THE ANSWER TO [email protected]... THANKS A LOT!

    Here's the question (and I don't accept "it's not possible" answers!)...

    The Winsock Listen method allows you to listen on a local port for an incoming connection request. If the port is already open or being used, then it can't listen. However, my question is that if there's a way to monitor an already open port using Winsock or some method within VB. Basically, say I'm running a web server (on port 80) and I want to monitor each bit of information that is travelling to and from the web server. If I try to Listen, it will give an error because it's being used. Is there a Passive Mode to winsock or something? ANYTHING?!?! Anything, as far fetched as it may seem... Please reply (to [email protected]). THANKS TO ANYONE WHO CAN GIVE ME AN ANSWER!!!!!!!!!!!!!!!

    - JONATHAN FREEMAN ([email protected])

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    This will explain everything...it might seem a bit complex at first but you just have to sort through the code.


    Gl,
    D!m
    Dim

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Unhappy Hmmmmmm...

    Thanks for your reply, but this doesn't help me. This program lets you monitor the state of a port, which frankly is quite easy. What I want is to be able to see the INFORMATION (not the state) that is being passed through a port. I am simply interested in this kind of thing... If you play an Internet game, don't you ever wonder what exactly they're passing through your port? I read somewhere that in Starcraft: Brood Wars, if you log on with an already-in-use CD key to BATTLE NET, it sends 8 registry keys without even telling you to BATTLE NET. It sends Windows registration information, such as who the computer's owner is and then Outlook information like email address, etc. So... KEEP TRYING EXPERTS, YOUR EFFORT IS GREATLY APPRECIATED!!!

    - JoNaThAn FrEeMaN ([email protected])

  4. #4
    Guest

    Wink I know this wont help you directly

    The way i deal with the problem of a port already being used is by ..finding whatever is using the port and then disconnect it from the port..then use the port.

    And about your Q about moniroting the port...would using the "getdata" methods in the winsock control itself be sufficent?.. if not try using the method "Winsock1.bytesrecived" and then just route the info to a textbox or something.

    but if you mean something more detailed....i dont think it can be found using vb...more like c++ or asm.

    All in all good luck though.

    And when you figure it out...do you mind sending the code to me? hehe [email protected]

    Thanks.


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