Default [Q] UDP/TCP-Connect to clients of Tether-Wifi-Hotspot

Hi everyone,

I have written an app similar to Gmote, but it uses UDP broadcasting on the Wifi to find its server, so connecting is easier. This works fine when I am at home and both my phone and my computer/laptop are connected to my Wifi at home.

However, I was wondering, if this would also work anywhere else, when there is no router (on holidays, parties, etc.). My HTC Desire Z has the HTC-specific Wifi-Hotspot-App, that allows my laptop to access my phone's 3G-connection (which works fine) and the Wifi-Hotspot can even be activated when there is no 3G activated/available. I can ping each of the devices and when I connect another Android-device to this Wifi, I am able to connect to the laptop.

So: UDP-broadcasting and TCP-connects work on this Wifi-Hotspot the same way it works at home, when I use my laptop and a different Android-device. This involves 3 devices in total.
But: I want to UDP-broadcast and connect from my Desire Z, which is the hotspot at the same time (only 2 devices involved). And this doesn't work, as it throws an "Network unreachable"-Exception when trying to UDP-broadcast anything using MulticastSocket.send().


Do you know how I can connect from my phone to my laptop, which is connected to my phone's Wifi-Hotspot? Does it work with your devices?

I appreciate any tips.

Thank you,
Philipp