Apache listen remote

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

Apache listen remote

Postby kmitnick » 27. November 2011 11:45

Hi all,

I want open listen for all my LAN pc. How can I do it?

Now, I can access my webapp only using localhost.

Help me please.
kmitnick
 
Posts: 2
Joined: 27. November 2011 11:42
Operating System: Windows Seven

Re: Apache listen remote

Postby Nobbie » 27. November 2011 12:45

Simply remove all LISTEN directives in your Apache configuratian (httpd.conf). The default for Apache is to listen on ALL IPs and ALL Ports.

P.S.: Oops! I just read this note in http://httpd.apache.org/docs/2.1/en/mod ... tml#listen

If it is not in the config file, the server will fail to start. This is a change from previous versions of Apache.


Sorry, I didn't know that the default behaviour has been changed. As it looks, there is no other way than specifying LISTEN directives for each IP, which is assigned to your server (still not very many).

P.P.S.: Maybe I dont understand your question correctly. Apache *cannot* LISTEN to all PCs of your LAN (thats not the way Apache/LISTEN works); Apache can only LISTEN to IPs which are assigned to the server where Apache is installed. All incoming requests to this/these IP(s) are recognized.
Last edited by Sharley on 27. November 2011 21:03, edited 1 time in total.
Reason: Please add your XAMPP version and your OS in your profile settings as this is now an Apache Friends forum requirement - read the announcement.
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04

Re: Apache listen remote

Postby kmitnick » 27. November 2011 13:00

I have setted "Listen 0.0.0.0:80" but remote machine can't view my webapps published on my apache! only localhost can view them!

Help
kmitnick
 
Posts: 2
Joined: 27. November 2011 11:42
Operating System: Windows Seven

Re: Apache listen remote

Postby Nobbie » 27. November 2011 15:15

Why dont you read documentation, i.e. the link i provided to you?

a) You should use "LISTEN 80" and not "LISTEN 0.0.0.0:80", Restart Apache after changing configuration

b) What do you enter in remote browser?
Last edited by Sharley on 27. November 2011 21:05, edited 1 time in total.
Reason: Please add your XAMPP version and your OS in your profile settings as this is now an Apache Friends forum requirement - read the announcement.
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04

Re: Apache listen remote

Postby Sharley » 27. November 2011 23:08

@kmitnick

You say you are using XAMPP 1.7 version, is that correct?
Check by looking at the first line in the readme_en.txt file in the xampp folder.

In older versions of XAMPP there are no restrictions on access from the LAN if you type the IP address of the computer that has XAMPP installed in the browser of the computer on the LAN.

Try changing the Listen directive to
Code: Select all
Listen *.80
Save the file and restart Apache.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests