Admin button of XAMPP doesn't work

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

Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 15:15

Hello,

I changed ServerAdmin to pc@pc and ServerName to pc:80 in httpd.conf and httpd-ssl.conf

Why doesn't Admin button of XAMPP work ? The apache message "ERR_CONNECTION_REFUSED" because it wants to access "localhost".

In French :

localhost n'autorise pas la connexion.
Voici quelques conseils :

Vérifier la connexion
Vérifier le proxy et le pare-feu
ERR_CONNECTION_REFUSED

Thank you in advance for your help
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 15:29

Details :

I cannot give the same name to two servers on the local network. The first is named "localhost", it works, but the second is named "pc" and doesn't work. How can i resolve my problem ?
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby Altrea » 30. October 2021 16:40

localhost is a special reserved hostname assigned to every computer. it always resolves to the own loopback adapter (127.0.0.1 or for IPv6 ::1).
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: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 17:13

ok, then how can i call the pages of the first pc from the second, and in the same time, call the pages of the second pc from the first ?
Surely it is possible, but how ?
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby Altrea » 30. October 2021 17:53

Three ways.

  • Request the LAN IP of the XAMPP PC like so: http://192.168.X.X/
  • Request the Computername of the XAMPP PC like so http://Computername/
  • use a fake Domain name you resolve by the clients hosts file to the XAMPP LAN IP
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: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 18:12

The first one is not possible in DHCP.
The second one would be the best one. But how give an another name to localhost ? Or where do I find the name of my computer linked to apache ?
The third one, i don't understand what you mean...
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby Altrea » 30. October 2021 19:33

rocchr wrote:The first one is not possible in DHCP.

It is.
First: DHCP does not mean a PC will get a different IP address all the time. In fact a DHCP server tries to
assign an ip address to the same pc if possible.
But if you will be safe you can define static ip assignments in your DHCP server.

rocchr wrote:The second one would be the best one. But how give an another name to localhost ? Or where do I find the name of my computer linked to apache ?

Your computer already does have a computer name- And your XAMPP Apache will already serve requests for this computername.

rocchr wrote:The third one, i don't understand what you mean...

https://www.dummies.com/programming/net ... osts-file/
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: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 20:07

For second solution, I tried several things to install a virtual host in httpd-vhosts.conf and in windows/system/drivers/etc/hosts, but it doesn't work ... and I don't see how to do...

In the xampp shell, the command hostname gives :

pa@DESKTOP-RJHH809 c:\xampp

and I don't know what I must do...
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 20:20

http://DESKTOP-RJHH809 doesn"t work.
pc.local in vhosts.conf, httpd.conf and hosts doesn't work.
Only localhost works (or 127.0.0.1).
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby Altrea » 30. October 2021 20:24

Maybe you got a different problem like activated windows firewall?
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: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 20:56

firewall not activated
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 22:48

If I type "ping pc.local" in xampp shell, pc.local is localized at address ::1, c'est à dire 127.0.0.1 correspondant à localhost.
Then the "hosts" windows file works correctly.

But when I type "pc.local" in browser address bar, chrome doesn't recognize it and shows google results !!! Two possible reasons :

1) the access to pc.local is not correct, but I don't see why ?

2) or chrome doesn't use the "hosts" windows file.

Thank you for your help
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby Altrea » 30. October 2021 22:54

none of both.
Chrome uses the google search only if you do not type in the full address including the protocol => http://pc.local/
But it is completely useless to define a fake domain for 127.0.0.1.
What you really want is to define a fake domain on your clients pc for the xampp server LAN IP
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: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 22:56

My "hosts" file contains :

#127.0.01 localhost
#::1 localhost

127.0.0.1 pc.local
::1 pc.local

Normally, it's sufficient, no ? But "pc.local" in chrome browser doesn't work...
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Admin button of XAMPP doesn't work

Postby rocchr » 30. October 2021 23:01

If I type "http://pc.local", chrome returns (translated from french) :

This site is inaccessible
pc.local doen't authorize the connection.
here are a few tips :

Verify the connection
Verify the proxy and firewall
ERR_CONNECTION_REFUSED
rocchr
 
Posts: 23
Joined: 29. October 2021 21:33
XAMPP version: 3.3.0
Operating System: Windows 10

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 117 guests