So I am making a multiplayer game in Visual Basic and I would like to use a peer-to-peer network to link us all up. I am very new to networking in VB so I found a tutorial using UDP client stuff. Anyway, I would like my lobby to detect when someone connects to me so that I can change a label to their name and they can chat using the chat box. There is no dedicated server so everyone’s files need to do this and it’s all a bit too confusing for me. here is the code: https://pastebin.com/isfUB5CS There are 4 pictureboxes which are for avatars later on 4 labels for the names a rich text box to store all the messages people send textbox for your message a button to send it there is a btnStart and btnGameInfo which you can just ignore.
If anyone could help me that would be really appreciated as I have no clue what I’m doing. I need to get everyone into this lobby so they can talk and later join in the game.