could not bind to address 0.0.0.0:81

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

Postby hiddenHand » 28. February 2008 17:42

Hi all,

I am only new on this forum and I have no idea if this issue has been dealt with already or not. I am using XAMPP with all the package. Everything seems to be working fine on my machine at home. However the Apache server doesn't work if I use the college machine because the port 80 has been used by other applications. How could I change the port to something else? I tried to use the httpd.conf file in the apache folder of xampp but it doesn't make any difference. I keep getting the below error:
Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shutting down
Unable to open logs


What can I do and which other port can I use for apache apart from 8080?

Thank you for your help
The Power of the Hidden Hand
hiddenHand
 
Posts: 3
Joined: 28. February 2008 17:31

Postby Wiedmann » 28. February 2008 17:57

What can I do and which other port can I use for apache apart from 8080?

With tools like TCPView or netstat you can find a free port. (as you can read in the RFC, you should use a port > 1024)

if I use the college machine

Maybe a firewall/security software is blocking all ports.
--> ask the administrator
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby hiddenHand » 01. March 2008 15:30

Wiedmann wrote:
What can I do and which other port can I use for apache apart from 8080?

With tools like TCPView or netstat you can find a free port. (as you can read in the RFC, you should use a port > 1024)


if I use the college machine

Maybe a firewall/security software is blocking all ports.
--> ask the administrator


In which file should I do the change? Because I tried the httpd file, and nothing seemed to work.

When I tried to use a standard alone Apache, I can easily change the port in the /conf folder in the web.xml file. And everything works fine in college.
The Power of the Hidden Hand
hiddenHand
 
Posts: 3
Joined: 28. February 2008 17:31

Postby Wiedmann » 01. March 2008 16:10

In which file should I do the change?

In the file "httpd.conf", the directive "Listen".

When I tried to use a standard alone Apache, I can easily change the port in the /conf folder in the web.xml file.

"web.xml" is not part of a standard Apache webserver. This is a configuration file for Tomcat.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby hiddenHand » 02. March 2008 00:44

8) Thank you man! I was changing both the directive Listen and the ServerName localhost:80.

Thank you for your help
The Power of the Hidden Hand
hiddenHand
 
Posts: 3
Joined: 28. February 2008 17:31


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests

cron