Android - JSON Connection to Web Server / MySQL

view story

http://stackoverflow.com – I am in my first android programming days, and I am stuck at this. I'm trying to establish a connection (log in page) with a MySQL database through PHP in an android project. I've been successful in the emulator with the host's ip address inside my network. However, I can't seem to connect to the external IP, which is fulcral because I mean to implement it on real devices. On the device, since it's outside the network, I can't connect either way. Result of unsuccessful connection is crash, and LogCat stays stuck at Button - Login. I've added Internet Permissions to the Manifest. The only (HowTos)