PDA

Click to See Complete Forum and Search --> : Ip Address


uainfantry
Apr 13th, 2006, 02:02 AM
I want to scan a port that a game uses, and get all the ip's that are connceted through that port to my server.

How can I do that and log those ip's to a txt file.

visualAd
Apr 13th, 2006, 04:13 AM
Open up a command prompt and type:

> netstat -n

It lists all current connections and their ports.

the182guy
Apr 13th, 2006, 06:23 AM
if you wanted to do it through your vb app there is loads of examples on pscode.com search for 'netstat' then you could have your app save the IP's to a txt

Winsocket
Apr 20th, 2006, 01:33 PM
To use Netstat and log it to a text file of your choice Open a Command Prompt and use...netstat -n > C:\log.txt