473,385 Members | 1,753 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,385 software developers and data experts.

System.Net.Sockets.Socket Bug?

All,

Are there any known bugs with the Socket class in systems with multiple
network cards? If I create a Udp Socket (non-multicast) with "new
Socket(AddressFamily.InterNetwork, SocketType.Dgram,
ProtocolType.Udp);" and bind it to anything but the machine's default
IP address, I am unable to send any packets. The SendTo method returns
without error, but I don't see any outgoing packets (either in the
Status Dialog for the network card, or even running a trace with
Ethereal). Like I said, it works when I bind to the machine's default
IP address, but if I try to bind to any other IP addresses on other
network cards, SendTo doesn't do anything. If you want, I can send you
some source code that will reproduce the problem. Any ideas?

-jim

Nov 3 '05 #1
2 1614
by chance did u apply the loopback patch microsoft came out with
?

"Alphamacaroon" wrote:
All,

Are there any known bugs with the Socket class in systems with multiple
network cards? If I create a Udp Socket (non-multicast) with "new
Socket(AddressFamily.InterNetwork, SocketType.Dgram,
ProtocolType.Udp);" and bind it to anything but the machine's default
IP address, I am unable to send any packets. The SendTo method returns
without error, but I don't see any outgoing packets (either in the
Status Dialog for the network card, or even running a trace with
Ethereal). Like I said, it works when I bind to the machine's default
IP address, but if I try to bind to any other IP addresses on other
network cards, SendTo doesn't do anything. If you want, I can send you
some source code that will reproduce the problem. Any ideas?

-jim

Nov 4 '05 #2
I don't think so. I don't have the loopback adapter installed anyway.
Should I have the patch installed?

Nov 7 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
0
by: Sagaert Johan | last post by:
this code using System; using System.Net.Sockets; namespace ConsoleApplication1 { /// <summary> /// Summary description for Class1. /// </summary>
4
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
2
by: Stressed Out Developer | last post by:
We have an application that has a 200 count loop that does the following: ' Each time thru the loop we pass the next IP Address is a range (aka 192.168.4.50 thru 192.168.4.254) Try If...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
6
by: Aero | last post by:
Hi, My window application written in C# is throwing following exception while connecting to one FTP location The type initializer for System.Net.Sockets.Socket threw an exception This exe is...
3
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
4
by: sd1978 | last post by:
Hi, I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error: No connection could be made because the target...
2
by: pedrito | last post by:
I've got an app that downloads from several concurrent threads. Occasionally, I get an expcetion trying to read the HttpWebResponse stream... Sorry, the code isn't short, but I figured best to...
2
by: =?Utf-8?B?VmlqYXk=?= | last post by:
Hi, I am calling an external web service that returns some data which is being displayed on my ASP.NET page. This page refreshes every 60 seconds and pulls the updated data from the web service....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.