Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. JoinMulticastGroup

JoinMulticastGroup

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    udir
    wrote on last edited by
    #1

    Hi, When running the following code try { System.Net.IPAddress multicastaddress = System.Net.IPAddress.Parse("224.0.0.1"); udpclient.JoinMulticastGroup(multicastaddress, 50); } catch ( SocketException e ) { Console.WriteLine( e.ToString()); } On XP with service pack 2, I am recieving the following excetion : "An invalid argument was supplied" while the same code runs perfectly good on windows 2000 computers. Any idea ? Thanks in advance, Udi Raz

    L 1 Reply Last reply
    0
    • U udir

      Hi, When running the following code try { System.Net.IPAddress multicastaddress = System.Net.IPAddress.Parse("224.0.0.1"); udpclient.JoinMulticastGroup(multicastaddress, 50); } catch ( SocketException e ) { Console.WriteLine( e.ToString()); } On XP with service pack 2, I am recieving the following excetion : "An invalid argument was supplied" while the same code runs perfectly good on windows 2000 computers. Any idea ? Thanks in advance, Udi Raz

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      udir wrote: Console.WriteLine( e.ToString()); Add this too. Console.WriteLine( e.GetBaseException()); Should give you a better idea. xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

      U 1 Reply Last reply
      0
      • L leppie

        udir wrote: Console.WriteLine( e.ToString()); Add this too. Console.WriteLine( e.GetBaseException()); Should give you a better idea. xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

        U Offline
        U Offline
        udir
        wrote on last edited by
        #3

        Thanks but didn't help much. "System.Net.Sockets.SocketException: An invalid argument was supplied at System.Net.Sockets.Socket.setMulticastOption(SocketOptionName optionName, MulticastOption MR) at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object optionValue) at System.Net.Sockets.UdpClient.JoinMulticastGroup(IPAddress multicastAddr) at DVP.Do.AddMsgToLog(String msg, Int32 port, String ip) in c:\\dev\\net\\core\\dvp\\dvp.cs:line 664" I tried to remove the FireWall, but still nothing. Maybe there is a security problem, maybe the XP does not allow communication through the port ???? Thanks again, Udi

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups