View Single Post
  #4 (permalink)  
Old 09-28-2008, 05:30 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Quote:
connect to all the pc on port 123
No, I don't know how or if that can be done.
Your search routine would use a nested loop.
Outer loop over the IP addresses you gave
Inner loop over the ports you gave.
The Socket class is what you would use to try to connect to each port at each IP address.

Each address you try to connect to would have to have software ready to talk to you. Firewalls will prevent this, unless the PCs are configured to let you connect.
Reply With Quote