- This topic has 5 replies, 2 voices, and was last updated 10 years, 2 months ago by Anonymous. 
- 
		AuthorPosts
- 
		
			
				
July 26, 2015 at 19:00 #4003Anonymous InactiveHey , Im trying to do a broadcast using simple plain UDP. My server is started on localmachine with standard class C ip address (i.e. 192.168.1.X) I’m getting : An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll Additional information: The requested address is not valid in its contextWhen I try to execute the folowing code : SendReceiveOptions optionsToUseForUDPOutput = new SendReceiveOptions<NullSerializer>(); using (Packet sendPacket = new Packet("Unmanaged", Encoding.ASCII.GetBytes("pwd"), optionsToUseForUDPOutput)) { UDPConnection.SendObject<byte[]>(sendPacket, new IPEndPoint(IPAddress.Broadcast, 48899), optionsToUseForUDPOutput, ApplicationLayerProtocolStatus.Disabled); }July 27, 2015 at 12:35 #4010Anonymous InactiveI’m not entirely sure why you are getting the error, it should work. Could you please try using the broadcast address “0.0.0.0” and see if it works or you get the same/different error? Kind regards, 
 MarcJuly 27, 2015 at 18:29 #4015Anonymous InactiveHey , When I have changed the address this is what I get (I’m using 3.0.3) ` 
 An unhandled exception of type ‘NetworkCommsDotNet.ConnectionSetupException’ occurred in NetworkCommsDotNetComplete.dllAdditional information: Attempting to determine the best local endPoint to connect to 0.0.0.0:48899 resulted in a socket exception. - 
		This reply was modified 10 years, 3 months ago by . Reason: version added 
 August 3, 2015 at 22:58 #4025Anonymous InactiveIt sounds like one of your network adaptors is causing a problem. I would recommend disabling all adaptors, enable one at a time and then see if you still get the error. If this fixes the problem you can restrict NetworkComms.Net to only use specific adaptors using https://networkcomms.net/api/html/P_NetworkCommsDotNet_Tools_HostInfo_RestrictLocalAdaptorNames.htm Let me know how it goes. August 9, 2015 at 20:07 #4047Anonymous InactiveHey , I narrowed down the problem. Within my default interface problem (as that was only one I left enabled) I discovered that Virtual box is giving me this error. While I unchecked it – the problem dissapeared. Now my question is : “Have you guys had problems with VirtualBox driver on Windows machines ?” Thanks 
 RafalAugust 9, 2015 at 21:16 #4048Anonymous InactiveHeya Rafal, Thanks for the update. Yes we have had issues with some virtual adaptors in the past. We have not been able to think of a solution that will work for everyone so far, if you have any suggestions, please let us know. Regards, 
 Marc
- 
		This reply was modified 10 years, 3 months ago by 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
