Page 1 of 1

Connection to localhost problem

PostPosted: 20. November 2014 04:19
by Leeyengyang
Hi,

Recently i tried my android coding, it can direct me to the PHP file inside the htdocs folder. But after i change the Apache port due to the Error: Apache shutdown unexpectedly. Then it unable to connect the localhost anymore using the initial coding. Is it i need to change the http://10.0.2.2 ? Please help. Thanks

Apache port: 80 Change to 8081.

Browser:
http://localhost:8081/my_folder_inside_htdocs/check.php ( Can open through google chrome.)

Coding:
httppost= new HttpPost("http://10.0.2.2/my_folder_inside_htdocs/check.php"); ( Unable to read the php file anymore )

Re: Connection to localhost problem

PostPosted: 20. November 2014 07:54
by Altrea
Hi,

[FGA] Changing the Apache default ports

Changing the Apache ports has some sideeffects:



best wishes,
Altrea