Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

winsock port listening....

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
If I setup a winsock control to be listening on a particular port, it will fire if a connection from the outside is made to it. What I want to know if it works the other way around, will it fire if a program from the inside (i.e. a program this is running on the local machine) tries to open that port to make a connection to the outside world.


The other question that I have is how do I obtain as much information about the machine trying to connect to my machine? I can get the ip address and the dns name (if it has one), but I would like to be able to gather more information. I would like to know what there ISP is and information similar to that.

Also, is it better to use winsock API or the winsock control? And, is it infeasible to listen to all 65535 ports at the same time?

Regards,
Troy Williams B.Eng.
fenris@hotmail.com

 
Basically I am trying to replicate zone alarm in Visual Basic. I don't trust zone alarm, actually I don't trust that it is not monitoring my habits!

As far as firewalling goes, do they listen on all the ports? Becuase if I scan myself while ZA is active, the scanner determines that there is no computer at this address (I used nmap off my linux box to scan my windows machine).

Any ideas if winsock is up to this? Would this task be better suited to windows 2000? Troy Williams B.Eng.
fenris@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top