I wrote a client server program ,that my client is android and my server is python, in the client side I input data in edittext and when press a button ,data is sent to server via internet and in server data save to my SQLite database.my server and mobile device are attach to a modem through WIFI so I used the local IP to my program and I used socket for transfer data via internet. My problem is this, my application work correctly in emulator when the server and emulator are in the same computer but when I run my android application in a real device it can't connect to the server, my application run but when I press button my application is stop and exit. thanks for your help. I'm sure my python server is correct I tested it with telnet and there isn't any problem in connection between client and server.I think my client side program have a problem.I wrote a client server program ,that my client