Network Discovery
Hi people!
I'm thinking of making an app with the following characteristics:
- 1 master (server) app with SocketServer (or anything else that works). This can be a mobile app and/or a desktop app
- Several client apps can connect to this server app where users can do specific things (mobile apps) over a Socket (or any other working connection)
- All of the apps are on the same network (home or office WiFi for example), no internet connection is needed
My question that I need your help with:
- Is there any non-intrusive way for the clients to discover the server's IP address and port?
Notes:
- I want to avoid IP and port scanning since they're somewhat intrusive (WiFi routers might have firewall rules enabled), resource-intensive and and slow if the response is from the scanned IP address is slow. Scanning 65536 ports for 256x256 ip addresses is not really feasible (edit: even if the server app is using one specific port like 6666, it's still a lot of IP addresses to check for a running server)
- I want to avoid that users have to enter IP address and port, it's not really a user-friendly way to connect to a server
- I kinda like to make it how it works on VLC media player or on my TV which can easily found my running UPNP/DLNA server on my PC without any user interaction and play videos with a few taps
Does anyone have any experience with this kind of network discovery in AIR?
Thank you
Message was edited by: Tamas Sopronyi
