Problem Connecting From Outside LAN

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

Problem Connecting From Outside LAN

Postby Phalangees » 11. December 2007 01:44

Hello,

First of all thanks for such awesome software.

I've set up xampp and everything is running fine. I set up my router for port forwarding so that it directs outside traffic to this specific computer with xampp running, but for some reason I can't access the server using my actual IP address. I've tried disabling Vista's firewall and all of that stuff. Still nothing. Anybody have any idea?

Thanks for your help.
Phalangees
 
Posts: 2
Joined: 11. December 2007 01:32

Postby Izzy » 11. December 2007 03:10

There are 2 ways of doing this as outlined in the xampp\apache\conf\httpd.conf file
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

The above will allow you to connect to the XAMPP Welcome Page using any IP.
http://123.123.123.123/
As long as the rest of the file is set to default.

Here you can add a specific IP address
Listen 123.123.123.123:80
Listen 127.0.0.1:80

as I have displayed above it should connect to any IP and even a wild card may work.
Listen *:80
Save the file and restart Apache to get your edits recognized and always make a backup of any conf or ini file before editing.


Or using a VirtualHost container as is also mentioned.

Search in the Xampp for Windows forum, category Apache Friends in English, using the keyword vhost or virtualhost will give some clues and example solutions - you can also add Izzy in the Search for Author field if you wish to narrow the search a little but is not essential.

Also please read the related Apache documentation.
http://httpd.apache.org/docs/2.3/vhosts/
http://httpd.apache.org/docs/2.3/vhosts/examples.html
http://httpd.apache.org/docs/2.3/mod/core.html

The vhost method will be able to protect the localhost but let you access a website using your IP or a domain name.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby Phalangees » 11. December 2007 14:19

Hmmm....

I tired everything you posted first about the wildcard and that stuff but still nothing. I've tried to do some searching for your name with vhost but it seems to be different then my problem. I'm not trying to have multiple domains with this one computer, I just want to be able to access my web pages from outside of my network.

Is that still something that fits in with the vhost container thing you mentioned?

EDIT: Nevermind, got it working. I typed in the wrong private address on my router. :oops:

Thanks for your help though.
Phalangees
 
Posts: 2
Joined: 11. December 2007 01:32


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 120 guests