BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Port scanner

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Jacques
Guest





PostPosted: Wed Mar 16, 2005 11:48 pm    Post subject: Port scanner Reply with quote



Does anyone know how to scan ports with indy components?


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Mar 17, 2005 12:12 am    Post subject: Re: Port scanner Reply with quote




"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote


Quote:
Does anyone know how to scan ports with indy components?

Indy is not designed for that. The only way to port scan with Indy is to
actually open a socket to the target IP/port, disconnect immediately after
connecting, and catch any connection errors in between.


Gambit



Back to top
Jacques
Guest





PostPosted: Thu Mar 17, 2005 12:41 am    Post subject: Re: Port scanner Reply with quote



thanks Remy

Is there perhaps another way this can be done? I just need to know if a port
is open and if so, what program is using it. I've googled but could not
find any info on this.
thanks
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote in message
news:4238c5c7 (AT) newsgroups (DOT) borland.com...

Does anyone know how to scan ports with indy components?

Indy is not designed for that. The only way to port scan with Indy is to
actually open a socket to the target IP/port, disconnect immediately after
connecting, and catch any connection errors in between.


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Mar 17, 2005 1:35 am    Post subject: Re: Port scanner Reply with quote


"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote


Quote:
I just need to know if a port is open

If the port is on the local machine, then simply binding a socket to the
port (not connecting or listening on the port) will tell you if it is
available or not.

Quote:
and if so, what program is using it.

For that, you have to perform a low-level query directly to the OS or socket
stack. The socket API does not provide for that functionality. Have a look
at the TCPView utility from http://www.sysinternals.com.


Gambit



Back to top
Jacques
Guest





PostPosted: Thu Mar 17, 2005 2:04 am    Post subject: Re: Port scanner Reply with quote

Thanks Remy,
I found what iwas looking for.
Cheers
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote in message
news:4238d229 (AT) newsgroups (DOT) borland.com...

I just need to know if a port is open

If the port is on the local machine, then simply binding a socket to the
port (not connecting or listening on the port) will tell you if it is
available or not.

and if so, what program is using it.

For that, you have to perform a low-level query directly to the OS or
socket
stack. The socket API does not provide for that functionality. Have a
look
at the TCPView utility from http://www.sysinternals.com.


Gambit





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.