I am converting my Bluetooth app to wifi. It works just fine to transfer data and images on my home network with only one router. After finding the address my phone was assigned by DHCP (Server.GetMyWifiIP) I ping each ip address in the same subnet, .2 to .254, to see if it is running my app.
Recently I had lunch at a large chain restaurant and found a single wifi network "Restaurant free wifi" but the 3 phones I brought with me each got an ip address in a different subnet range, for example 10.21.84.5, 10.76.22.60 and 10.33.29.22. The three side-by-side phones could not use my app since they weren't on the same router or in the same subnet.
Is there any way to detect this in software and use it for communications between nearby phones?
Recently I had lunch at a large chain restaurant and found a single wifi network "Restaurant free wifi" but the 3 phones I brought with me each got an ip address in a different subnet range, for example 10.21.84.5, 10.76.22.60 and 10.33.29.22. The three side-by-side phones could not use my app since they weren't on the same router or in the same subnet.
Is there any way to detect this in software and use it for communications between nearby phones?