Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Finding games over a LAN via WinSock

4: Adsense

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   

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?

#2 SiCrane   Moderators   

11778
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   

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.