Jump to content

  • Log In with Google      Sign In   
  • Create Account

Finding games over a LAN via WinSock


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Elixir   Members   -  Reputation: 122

Like
Likes
Like

Posted 08 February 2000 - 10:14 AM

In my multiplayer game I have it working fine if you enter the IP of the server but DirectPlay has the ability to ''search for local games'' in TCP/IP over a LAN. Does anyone know how to accomplish this with WinSock 2.x?

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9669

Like
Likes
Like

Posted 08 February 2000 - 01:52 PM

Just create a socket to listen to the broadcast address for the subnet that the computer is on. Then the game server sends packets to the broadcast address.

#3 TUna   Members   -  Reputation: 122

Like
Likes
Like

Posted 09 February 2000 - 09:17 PM

The client broadcasts a UDP packet and then the server responds. We don''t want the server wasting network bandwidth broadcasting continuously if there are not clients interested in connecting.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS