- Home /
Question by
chetan-rane · Jan 07, 2016 at 06:45 PM ·
unity 5networkingunity5
UNET: Check if Server is hosted on IP Address
is it possible to check from client machine, if server is hosted or not on given ip address (server and client will be two different machines)
Comment
Have you found a way to do this? I'm looking for a solution as well.
Answer by ThePCJakub · Aug 16, 2016 at 05:04 PM
You could send IP as a string to your client, and then on that client compare that IP with the IP which you are looking for.
Answer by WazzaM · Aug 17, 2016 at 01:48 PM
In the low level API:
You can use broadcast discovery to have the client announce itself for server to discover and the server can initiate a connection to the client.
This short video demonstrates it on same PC but it works from my phone to PC in the same manner.