ConnectAsync taking too much time in UWP
Opened this issue · 0 comments
ahmed-eg commented
when calling connect function as follow:
await client.ConnectAsync("192.168.1.100", 5000);
it works fine in Android but in UWP it take about 10 seconds to connect!
maybe you need to add the following in your code:
public function ConnectAsync(string _ip, int _port){
socket.Connect(System.Net.IPAddress.Parse(_ip),_port);
}