By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,846 Members | 2,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,846 IT Pros & Developers. It's quick & easy.

.NET and Network Interfaces

P: n/a
Hi everyone,

I've got a program which sends UDP data which works perfectly on my PC but
not on my laptop. The problem experienced is that sometimes on the laptop
packets that I send just dissapear. There is no error, but they do not
appear on any of the networks I have. After some testing it seems that
whenever there is a network interface which is not working (e.g. network
cable unplugged) this issue pops up, and it hangs around for a while until
some magical event (some combination of reboots, changing network settings,
disabling network interfaces, etc) occurs will it start working again.

I'm stumped here, no errors being thrown makes it hard to debug, and the way
it persists for a random time is annoying as well. Any advice people?

Dave
Mar 29 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi all,

I was asked via email if I was using synch or asynch methods, and thought I
should put all info here. I'm using one thread to send data and one to
recieve. Only once the reciever is up and running do I transmit data though,
so it shouldn't make much difference. Moreso as the first packet I try to
send is a broadcast (to 255.255.255.255) and it's not seen on any computer
on the network.

Dave
"Dave" <fa*******@dodo.com.auwrote in message
news:46********@news.comindico.com.au...
Hi everyone,

I've got a program which sends UDP data which works perfectly on my PC but
not on my laptop. The problem experienced is that sometimes on the laptop
packets that I send just dissapear. There is no error, but they do not
appear on any of the networks I have. After some testing it seems that
whenever there is a network interface which is not working (e.g. network
cable unplugged) this issue pops up, and it hangs around for a while until
some magical event (some combination of reboots, changing network
settings, disabling network interfaces, etc) occurs will it start working
again.

I'm stumped here, no errors being thrown makes it hard to debug, and the
way it persists for a random time is annoying as well. Any advice people?

Dave

Mar 29 '07 #2

P: n/a
On Thu, 29 Mar 2007 06:45:02 -0700, Dave <fa*******@dodo.com.auwrote:
Hi all,

I was asked via email if I was using synch or asynch methods, and
thought I should put all info here. I'm using one thread to send
data and one to recieve. Only once the reciever is up and running
do I transmit data though, so it shouldn't make much difference.
Moreso as the first packet I try to send is a broadcast (to
255.255.255.255) and it's not seen on any computer on the network.
I don't have the answer to your problem, but it doesn't sound like a .NET
Framework question, never mind a C# question.

UDP doesn't provide guaranteed delivery in the first place, and while you
should expect it to be more reliable than what you're seeing, the problem
almost certainly lies somewhere in the network and how it is interacting
with the Windows network drivers. I doubt there's anything that can be
done from the .NET side to address the issue.

In other words, you will likely have a lot more success posting your
question to a more relevant newsgroup.

Pete
Mar 29 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.