Re: Detecting Internet activity
- From: v-terryf@xxxxxxxxxxxxxxxxxxxx ("TerryFei")
- Date: Fri, 20 Jan 2006 02:51:47 GMT
Hi Noeld,
Thanks for your feedback!
In this situation, I suggest you do the following test at first. Open a FTP
connection and then use netstat tool to confirm whether or not the relevant
port is 20 or 21. If so, it may be something wrong using the GetTcpTable
API(e.g. not convert from network byte order to host byte order)
The following article shows how to use GetTcpTable API(including sample
code)to get TCP information. I hope it's useful for you.
Title: Enhance netstat
URL: http://www.codeproject.com/internet/enetstatasp.asp
If you have any questions or concerns, please let me know. Thanks again and
have a nice day!
Best Regards,
Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Best Regards,
--------------------
>From: "Noël Danjou" <noeld@xxxxxxxxxxxxx>
>References: <ei23tXFHGHA.3000@xxxxxxxxxxxxxxxxxxxx>
<RHdNKvMHGHA.3764@xxxxxxxxxxxxxxxxxxxxx>
>Subject: Re: Detecting Internet activity
>Date: Thu, 19 Jan 2006 18:57:05 +0100
>Lines: 23
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
>X-RFC2646: Format=Flowed; Original
>Message-ID: <#68BXHSHGHA.2320@xxxxxxxxxxxxxxxxxxxx>
>Newsgroups: microsoft.public.win32.programmer.networks
>NNTP-Posting-Host: acaen-152-1-10-69.w83-115.abo.wanadoo.fr 83.115.154.69
>Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.win32.programmer.networks:27923
>X-Tomcat-NG: microsoft.public.win32.programmer.networks
>
>Hi Kellie and Terry,
>
>Thanks to both of you for your suggestions.
>
>I could not find the GetExtendedTcpTable declaration in the "Platform SDK
>for Windows 2003 SP1" so I looked at GetTcpTable instead and that API
could
>possibly do the trick but I still have some issues:
>
>- the listed ports don't seem to match the same figures as in netstat
>and
>- when I open a FTP connection, none of the listed ports match the
>"well-known" FTP ports 20 or 21, instead they show as 3544 to 3549 for
>example. How would I figure out if it is a port used for FTP, HTTP or
other
>protocol or how would I convert them to well-known port numbers like 21 or
>80?
>
>Thank you.
>
>Best regards,
>--
>Noël
>
>
>
.
- Follow-Ups:
- Re: Detecting Internet activity
- From: Noël Danjou
- Re: Detecting Internet activity
- References:
- Detecting Internet activity
- From: Noël Danjou
- RE: Detecting Internet activity
- From: "TerryFei"
- Re: Detecting Internet activity
- From: Noël Danjou
- Detecting Internet activity
- Prev by Date: Re: Best approach?
- Next by Date: Re: Event Log
- Previous by thread: Re: Detecting Internet activity
- Next by thread: Re: Detecting Internet activity
- Index(es):
Relevant Pages
|