I listened on a c# desktop app through wifi and tried to connect a tcpclient through android app running on my phone connected to the same wifi but it is not connecting.
What is the exact error in the crash?
Did you set the network permission on Android?
Did you make sure your firewall is off, or at least on with the proper port allowing inbound connections?
Are you sure you are using the good ip address and port?
What is the library/API you used on Android and on the desktop app?
Can you paste the code used for the listening on the server (desktop) and to connect with the client (Android)?
Answers
What is the exact error in the crash?
Did you set the network permission on Android?
Did you make sure your firewall is off, or at least on with the proper port allowing inbound connections?
Are you sure you are using the good ip address and port?
What is the library/API you used on Android and on the desktop app?
Can you paste the code used for the listening on the server (desktop) and to connect with the client (Android)?