Need Raw TCP in VB.net form from IIS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I ned to have my VB.NET webform called on any tcp send to port 80 on IIS so I can see the message and possibly change it on the response
Basically I need to let IIS act as the socket server and want to ignore or erase the http in the picture..

Can any one give me some ideas or hints how to capture th message

Currently in the form I only get the HTTP message if the website is called...not on any TCP message to port 80 on the box

I didn't want to do ISAPI cause if the socket is secure I think i would see encrypted data...but in THE Webform IIS would decrypt and encrypt behind the scenes for m
Thanks very much
John
 
Short answer - not gonna happen.

Alternative - use the System.Net namespace to create a VB.NET windows
service app that Listens to the ports you want and communicate using raw TCP
sockets (the TCPListener and TCPClient classes should help you there).

Additional question - What is sending messages to IIS on port 80 that
*aren't* HTTP messages anyway? Something just sounds incredibly wrong about
this in a very fundamental way.

-Rob Teixeira [MVP]

John said:
Hi,
I ned to have my VB.NET webform called on any tcp send to port 80 on IIS
so I can see the message and possibly change it on the response.
Basically I need to let IIS act as the socket server and want to ignore
or erase the http in the picture...
Can any one give me some ideas or hints how to capture th message?

Currently in the form I only get the HTTP message if the website is
called...not on any TCP message to port 80 on the box.
I didn't want to do ISAPI cause if the socket is secure I think i would
see encrypted data...but in THE Webform IIS would decrypt and encrypt behind
the scenes for me
 
Back
Top