   how to broadcast in LAN using DirectPlay
  How do you broadcast that advertise that you are a host in the LAN, in DirectPlay there is a Host() method, but can anybody show me how to do this?thanks,, 
  Wow! I totally, totally read your question wrong and answered something else completely. Note to self: Do not answer questions before first cup of coffee.   [edited by - sunbeam60 on February 19, 2004 6:02:06 AM];  You need to go through DPNSVR. By default it''s turned on and it is responsible for assigning you a port number of you haven''t specified one in the device address. On the client side, you can enumerate the hosts on the local subnet with an empty remote address (just set the TCPIP service provider, not port, no remote machine name). Make sure that the EnumHosts() call gets at least 4 pings (dwEnumCount) seperated by 200ms delay (dwRetryInterval) and filter out repeat hits in the callback function. If you want to go beyond the local subnet and be seen throughout the planet, you will need another type of access like MS Zone or GameSpy. That is costly and it is not part of DirectPlay. 