EsotericSoftware / EsotericSoftware/kryonet
The client can't find the the server by using "discoverHost" in Android
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 411
- PR merge metrics
- No merged PRs in 30d
Description
```
Excuse me, I hava a problem for your kryonet.
In my Application,a phone can't find the server which be create by other phone,when the two phone connect to the same WiFi.so i check your code,Then i find the client only send the broadcast package with the ip adddress "255.255.255.0" and "255.255.0.0".
so,why do the client broadcast with the "255.255.255.255",i change your code to that:
```
InetAddress targetAddr = InetAddress.getByName("255.255.255.255");
try {
socket.send(new DatagramPacket(data, data.length, targetAddr, udpPort));
} catch (Exception ignored) {
}
```
Then the client can find the server.So my problem is why won't do that?
sorry for my poor english :-)
```
Contributor guide
Assessment
This issue has not been assessed yet.