Connection to localhost problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Connection to localhost problem

Postby Leeyengyang » 20. November 2014 04:19

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 )
Leeyengyang
 
Posts: 1
Joined: 20. November 2014 04:13
Operating System: Window

Re: Connection to localhost problem

Postby Altrea » 20. November 2014 07:54

Hi,

[FGA] Changing the Apache default ports

Changing the Apache ports has some sideeffects:



best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 120 guests