The functionality of sockets in my code has been ok until now, but since I upgrade the flutter to 1.22 version today, TCP sockets are not work, but UDP can work. It show like this:
SocketException: Insecure socket connections are disallowed by platform: 192.168.1.4
I sure that 192.168.1.4 is no exception and I can connect to it on my computer with tcp client.