John117 Posted October 3, 2007 Share Posted October 3, 2007 I have an application and am not sure which ip addresses it accesses but would like to block it to only use one that I trust. Can anyone tell me how I could monitor what ip addresses it uses or sends/recieves from? Link to comment Share on other sites More sharing options...
MadBoy Posted October 3, 2007 Share Posted October 3, 2007 (edited) I have an application and am not sure which ip addresses it accesses but would like to block it to only use one that I trust. Can anyone tell me how I could monitor what ip addresses it uses or sends/recieves from?Standard one: netstat -a (build in in windows xp)The better one is at: http://www.microsoft.com/TechNet/Sysintern...es/TcpView.mspx Edited October 3, 2007 by MadBoy My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
John117 Posted October 3, 2007 Author Share Posted October 3, 2007 Good to know! THanks Link to comment Share on other sites More sharing options...
weaponx Posted October 3, 2007 Share Posted October 3, 2007 Nirsoft CurrPorts is good too http://www.nirsoft.net/utils/cports.html Link to comment Share on other sites More sharing options...
lordofthestrings Posted October 4, 2007 Share Posted October 4, 2007 netstat -ab maps every executable to the TCP/ UDP Port they hold opened example: TCP HOSTNAME(local):3389(localport) HOSTNAME(remote):0(remoteport) LISTENING(state) 1308(PID) -- unknown component(s) -- c:\winntwks\system32\rpcss.dll C:\WINNTWKS\system32\svchost.exe C:\WINNTWKS\system32\ADVAPI32.dll Link to comment Share on other sites More sharing options...
maqleod Posted October 4, 2007 Share Posted October 4, 2007 netstat -ab maps every executable to the TCP/ UDP Port they hold opened example: TCP HOSTNAME(local):3389(localport) HOSTNAME(remote):0(remoteport) LISTENING(state) 1308(PID) -- unknown component(s) -- c:\winntwks\system32\rpcss.dll C:\WINNTWKS\system32\svchost.exe C:\WINNTWKS\system32\ADVAPI32.dll out of curiosity, how would you feed the data that netstat -ab gives you into autoit for parsing? I have been looking for a way to do this; i want to be able to list the info returned in a listview. [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
lordofthestrings Posted October 4, 2007 Share Posted October 4, 2007 I followed the example: ; Demonstrates StdoutRead() #include <Constants.au3> $sCommand= Run("netstat -ab", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line = StdoutRead($sCommand) If @error Then ExitLoop MsgBox(0, "STDOUT read:", $line) Wend While 1 $line = StderrRead($sCommand) If @error Then ExitLoop MsgBox(0, "STDERR read:", $line) Wend MsgBox(0, "Debug", "Exiting...") Link to comment Share on other sites More sharing options...
maqleod Posted October 5, 2007 Share Posted October 5, 2007 I followed the example: ; Demonstrates StdoutRead() #include <Constants.au3> $sCommand= Run("netstat -ab", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line = StdoutRead($sCommand) If @error Then ExitLoop MsgBox(0, "STDOUT read:", $line) Wend While 1 $line = StderrRead($sCommand) If @error Then ExitLoop MsgBox(0, "STDERR read:", $line) Wend MsgBox(0, "Debug", "Exiting...") thx, I just didn't know what function did that sort of thing. [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now