|
VB6 Network Game - Server List
Hello, I'm new here... wondering if you guys can help me out.
I'm writing my final project for Computer Science class, which is a 3D Chess program that has LAN functionality. I've completed the game itself and network play works, but I have to enter in the IP address of the other player.
What I'd really like is for every server to appear on a list, so that the user can just look for someone to play with and connect with the click of the button. I've been sifting through the internet for the solution, but so far I've only discovered that it's a bit of a pain in the ass. The way I'm approaching this is to get a list of all the computers in the network (like in My Network Places), then just have it go through each of them and check if they're hosting a game. Haven't been entirely successful finding out how to retrieve such a list, although by the looks of it, I'm going to have to use some kind of funky API crap.
If anyone has any insight on this, I'd appreciate it if you'd share it with me. I'd prefer a solution that works in Windows XP and Windows 98, but one or the other would be fine.
|