|
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.