Unet with LAN and wifi Hotspot
Hi,
I am developing LAN multiplayer game using UNET .
I have used UDP multicast to broadcast server ip and other devices can listen it.
I have extended network manger for some customization required.
I am happy because it works successfully in router.
The device which make server can broadcast its ip and other device automatically gets the server ip(it can be game name as well) in the list
On selecting server the client can join the game. I have avoided situation where user type ip.
Worst part start when i make any device as Wifi Hotspot and other device joins it.
Even Server creation fails,
I can share my code as well if someone going to help me.
Is it issue with UNET ?
Is something specific solution needed to be used?
Answer by jorhal · Oct 30, 2016 at 06:32 PM
Did you ever solve your problem? I am also having difficulty with a multiplayer LAN game using UNET.
Answer by Brijs · Dec 20, 2016 at 05:39 PM
You can try Network Discovery class provided by UNET without any issue.
You may refer this.
This may solve problem
Answer by ajaybhojani · Aug 01, 2017 at 05:09 AM
hello @Brijs ,
I have done same thing, and its working fine. Joining and playing game. Unity Network lobby package from asset store for UI and game player generation. But After comming back to lobby getting and pressing join button of lobby manager ui Getting error like " uNet- A connection has already been set as ready. There can only be one." Don't know how to resolve.
Your answer
Follow this Question
Related Questions
Card Game using Network Manager 0 Answers
Is there any way to increase the rate of messages on Unet? 0 Answers
How to set hosts IP 2 Answers
Network Discovery - client not receiving broadcast 2 Answers