The Way Of Life: Android connection refused to http://localhost

Wednesday, February 15, 2012

Android connection refused to http://localhost

This time I will share an experience in creating Android Application that accesses a web service with PHP script using Apache Web Server.When I make a connection to the Apache Web Server, I am using XAMPP on my notebook. Android application will refuse connection to http://localhost, it same when i make a connection to

After I was browsing on the internet, I found that android application have loopback to itself, one simple solution is to connect the LAN port of your notebook to a Network or a Switch Hub, so you can setting your IP Address to a web server, eg

In my next article , I will share how to make an Android Application that connected to Microsoft SQL Server.Why I’ve used web server as a tool to connect to the database server, because with web server application for the android to be more flexible to connect from everywhere.

related links:

How to connect Java to Microsoft SQL Server

How to connect Android to Microsoft SQL Server

Labels: , , ,


Post a Comment

<< Home