Home All Groups Group Topic Archive Search About

Framework, ProtocolType.Icmp and VISTA

Author
3 May 2007 2:23 PM
Andre Lorbach
Hi all,

I did not find any other suitable newsgroup for my question, so I took this
one here.
I have a little project which has some kind of a network scanning wizard, to
find local area computers and access them using the Eventlog or simple
pinging them.

1-2 years ago I wrote some code to manually handle pinging of other
machines, which worked very fine - till Vista ;)

My application is running with highest privileges, but I am not able to get
any ping responses from other machines expect my own local machine. Are there
any new security methods which prevent an .net application to use ICMP?


Author
3 May 2007 4:08 PM
Peter Duniho
On Thu, 03 May 2007 07:23:01 -0700, Andre Lorbach 
<AndreLorb***@discussions.microsoft.com> wrote:

> [...]
> My application is running with highest privileges, but I am not able to 
> get any ping responses from other machines expect my own local machine.
> Are there any new security methods which prevent an .net application to
> use ICMP?

I don't think so, not a .NET application per se.  However...

I've only touched one computer running Vista so far.  So I have little 
first-hand information.  However, it's my recollection that the new 
default firewall settings for Vista disable ICMP responses.

Have you tried simply using the "ping" command line program?  My guess is 
that it won't work either and that both it and your .NET program are 
affected by the same thing.

You might want to check the firewall settings, both on your local machine 
and on the remote machines you want to ping, and see whether the firewall 
has been configured to block ICMP.

Pete
Author
4 May 2007 8:58 AM
Andre Lorbach
Hi,

thanks for your reply. I double checked this, i am able to ping using the
command line. It does just not work from the .net application. I simply get
no reply on the network level, so I assume my icmp packets do not get send at
all.

best regards,
Andre Lorbach
Show quote
"Peter Duniho" wrote:

> On Thu, 03 May 2007 07:23:01 -0700, Andre Lorbach 
> <AndreLorb***@discussions.microsoft.com> wrote:
>
> > [...]
> > My application is running with highest privileges, but I am not able to 
> > get any ping responses from other machines expect my own local machine.
> > Are there any new security methods which prevent an .net application to
> > use ICMP?
>
> I don't think so, not a .NET application per se.  However...
>
> I've only touched one computer running Vista so far.  So I have little 
> first-hand information.  However, it's my recollection that the new 
> default firewall settings for Vista disable ICMP responses.
>
> Have you tried simply using the "ping" command line program?  My guess is 
> that it won't work either and that both it and your .NET program are 
> affected by the same thing.
>
> You might want to check the firewall settings, both on your local machine 
> and on the remote machines you want to ping, and see whether the firewall 
> has been configured to block ICMP.
>
> Pete
>
Author
4 May 2007 9:13 AM
Andre Lorbach
Hi again,

i figured out it is indeed caused by the Vista Firewall.
Thanks for the hint, i gonna analyse this now further.

best regards,
Andre Lorbach
Show quote
"Peter Duniho" wrote:

> On Thu, 03 May 2007 07:23:01 -0700, Andre Lorbach 
> <AndreLorb***@discussions.microsoft.com> wrote:
>
> > [...]
> > My application is running with highest privileges, but I am not able to 
> > get any ping responses from other machines expect my own local machine.
> > Are there any new security methods which prevent an .net application to
> > use ICMP?
>
> I don't think so, not a .NET application per se.  However...
>
> I've only touched one computer running Vista so far.  So I have little 
> first-hand information.  However, it's my recollection that the new 
> default firewall settings for Vista disable ICMP responses.
>
> Have you tried simply using the "ping" command line program?  My guess is 
> that it won't work either and that both it and your .NET program are 
> affected by the same thing.
>
> You might want to check the firewall settings, both on your local machine 
> and on the remote machines you want to ping, and see whether the firewall 
> has been configured to block ICMP.
>
> Pete
>
Author
4 May 2007 2:40 PM
Andre Lorbach
Hi again,

I have done some further testing but had no success till yet.
If the Windows Vista Firewall is enabled, the ping command utlitity still
works, but not my raw socket access using ProtocolType.Icmp.

Show quote
"Andre Lorbach" wrote:

> Hi again,
>
> i figured out it is indeed caused by the Vista Firewall.
> Thanks for the hint, i gonna analyse this now further.
>
> best regards,
> Andre Lorbach
> --
> www.adiscon.com
>
>
>
> "Peter Duniho" wrote:
>
> > On Thu, 03 May 2007 07:23:01 -0700, Andre Lorbach 
> > <AndreLorb***@discussions.microsoft.com> wrote:
> >
> > > [...]
> > > My application is running with highest privileges, but I am not able to 
> > > get any ping responses from other machines expect my own local machine.
> > > Are there any new security methods which prevent an .net application to
> > > use ICMP?
> >
> > I don't think so, not a .NET application per se.  However...
> >
> > I've only touched one computer running Vista so far.  So I have little 
> > first-hand information.  However, it's my recollection that the new 
> > default firewall settings for Vista disable ICMP responses.
> >
> > Have you tried simply using the "ping" command line program?  My guess is 
> > that it won't work either and that both it and your .NET program are 
> > affected by the same thing.
> >
> > You might want to check the firewall settings, both on your local machine 
> > and on the remote machines you want to ping, and see whether the firewall 
> > has been configured to block ICMP.
> >
> > Pete
> >

AddThis Social Bookmark Button