I want to make a program that is something similar to network games
where some1 is the server and the others can see this server and discover him

so basically i need 3 things

1- how to make the software a server and make it discoverable
2- how to let the clients search the network for servers and display their IP
3- how to connect to the server (using winsock is kinda hard for me to understand so explain it to me plz)

and this whole thing is in one software
like games have a button for creating a server and another to join one
and when i create the server
i want to choose a name
so when the clients search for that server
the name and the IP r displayed

if u cud attack a small example that wud be great

Thank You