🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2704

Gestione reti con VB.

#2704
From: Franco
Date: Sun, 23 Feb 2003 22:05
22 lines
1897 bytes
Devo sviluppare un programma in VB che dovr� funzionare su alcuni computer
collegati in rete.
Ci sar� una parte Server, la quale, ovviamente, sar� in ascolto su una porta
TCP predeterminata, e una parte Client.
La parte Client deve fare una scansione della rete alla ricerca dei PC su
cui � in esecuzione la parte Server.

Due domandine:

1)  Come si fa per verificare con VB quali macchine della LAN sono in
ascolto su una determinata porta TCP?
     Naturalmente potrei tentare la connessione a quella porta e se va a
buon fine ho ottenuto la risposta.
     Per� io vorrei evitare questo metodo. Sapete dirmi come si pu� fare?

2)  Come � possibile con VB rilevare la subnetmask impostata sulla scheda di
rete del PC in uso?
     So come si rileva l'indirizzo IP ma non sono riuscito a trovare il modo
di arrivare a leggere la subnetmask.

Grazie infinite.
                                      Franco
Technical Details
Message-ID: <9Bb6a.222810$0v.6251632@news1.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeeder.edisontel.com!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,8d2be7622b5c5d03,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-02-23 14:06:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeeder.edisontel.com!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
From: "Franco" <granchio_x@hotmail.com>
Newsgroups: free.it.visual-basic
Subject: Gestione reti con VB.
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Message-ID: <9Bb6a.222810$0v.6251632@news1.tin.it>
Date: Sun, 23 Feb 2003 22:05:57 GMT
NNTP-Posting-Host: 80.181.196.141
X-Complaints-To: newsmaster@tin.it
X-Trace: news1.tin.it 1046037957 80.181.196.141 (Sun, 23 Feb 2003 23:05:57 MET)
NNTP-Posting-Date: Sun, 23 Feb 2003 23:05:57 MET
Organization: TIN