Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / October 2006

Tip: Looking for answers? Try searching our database.

UdpClient send/receive problem - only if different computers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 07 Oct 2006 00:23 GMT
Hi;

I have a little test program that works great to send/receive UDP packets if
I run both ends on the same computer. If I run them on different computers -
doesn't work.

I have checked and checked and checked and I am using the remote IP address.
Here is the relevant code.

sendSocket = new UdpClient(0);
sendSocket.Send(data, data.length, new IPEndPoint(remoteAddress, port))

...
readSocket = new UdpClient(0);
IPEndPoint ep = new IPEndPoint(IPAddress.Any, 0);
ubyte[] pkt = readSocket.Receive(ep); // J# code so no ref

Any ideas?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

David Thielen - 07 Oct 2006 19:36 GMT
This appears to be a visual studio debugger issue. If I run the app, it
works. But if I run it under the debugger, it doesn't. No idea why.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi;
>
[quoted text clipped - 14 lines]
>
> Any ideas?
Charles Wang[MSFT] - 09 Oct 2006 08:24 GMT
Hi Dave,
My understanding of your issue is:
Your two test programs worked fine at your local computer, however if you
deployed them on two computers with debugger mode, they failed to work. It
seemed that the release versions were no problem.
If I have misunderstood, please let me know.

For further research, I recommend that you insert breakpoints to both of
your programs and perform online debug to locate which program and which
line breaks the communication. What's the error message at that moment?

Sincerely,
rles Wang
Microsoft Online Community Support

======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
David Thielen - 09 Oct 2006 17:46 GMT
Found the problem - TrendMicro firewall was stopping the inbound connection
on one system - never poped up and asked about it - just killed it. Working
now.

From now on I am turning off the firewall on all systems when I test network
code.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi Dave,
> My understanding of your issue is:
[quoted text clipped - 18 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> ======================================================
Charles Wang[MSFT] - 10 Oct 2006 12:10 GMT
Hi,

Thank you for your reply and the detailed additional feedback on how you
were successful in resolving this issue. This information has been added to
Microsoft's database. Your solution will benefit many other users, and we
really value having you as a Microsoft customer.

If you have any other questions or concerns, please do not hesitate to
contact us. It is always our pleasure to be of assistance.

Have a nice day!

Charles Wang
Microsoft Online Community Support

======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.