 <p>From your android device you should not put <code>localhost/###.#.#.#:##</code>, but instead just your server address and port like <code>###.#.#.#:##</code>, for example <code>192.168.1.12:80</code>. Because you are not running any server on your android app.</p>