473,394 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

.NET and Network Interfaces

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
2 2314
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matthew K Jensen | last post by:
In one of my "because I can" projects, I want to be able to see the enabled network interfaces on a machine. I have no clue as to how to do this. Any suggestions?
1
by: le dahut | last post by:
Hi, Is there a way to get network parameters (number of network interfaces, ip address(es), DNS, gateway) on a linux station using python 2.3 ? Klaas
2
by: Marc-André | last post by:
Hi, I would to know if there's a way to use a particular network interfaces to access network(programmatically c#). The problem is that if my wireless network card is working, I want my...
6
by: fabrizio | last post by:
I've to write an applications which emulates the network, so this application must write and read all the data passing on network interfaces like eth0 and tap0(virtual ethernet interface). How can...
1
by: steve1rm | last post by:
Hello, I have a problem trying to connect a remote sql server. The error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may...
2
by: Joshua Beall | last post by:
Hi All, I've got a utility I'm working on, and I want to be able to list for the user all the current network interfaces on the machine. Is there a way to do this in PHP? PHP 5.0.3, Mandriva...
4
by: dumbkiwi | last post by:
I have written a script that uses the urllib2 module to download web pages for parsing. If there is no network interface, urllib2 hangs for a very long time before it raises an exception. I...
13
by: AAaron123 | last post by:
I downloaded the personal website starter kit and when I run it I get the error shown below. I found a way of using Launch Surface Area Configuration that is supposed to fix the remote setting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.