Page 1 of 1

XAMPP internet access and port forwarding

PostPosted: 30. March 2008 19:51
by BlizzofOZ
I'm able to view my directory both on my Linux Ubuntu box and my Win XP box, using localhost/username AND IPaddy/username.

How do I enable it so that I (or friends) be able to access via the internet?

Either by using my outside IPaddy or hostname.

I also believe my ISP blocks port 80... how do I port forward 80 to another port? I know how to do this in my router setup, but not on XAMPP side.

Also, in regards to internet connections, how do I make this secure?

Thanks!

Re: XAMPP internet access and port forwarding

PostPosted: 30. March 2008 21:40
by Nobbie
BlizzofOZ wrote:How do I enable it so that I (or friends) be able to access via the internet?

Either by using my outside IPaddy or hostname.


It is enabled per default - you dont need to enable anything.

BlizzofOZ wrote:I also believe my ISP blocks port 80... how do I port forward 80 to another port? I know how to do this in my router setup, but not on XAMPP side.


You cannot forward a port which is blocked by our ISP - blocked is blocked. You must configure Apache to LISTEN to different port than 80 - use directive LISTEN 8080 for example to listen on port 8080.

Or you may configure your router to map external port 8080 to internal port 80 - but in any case, the clients outside have to specify port 8080 in order to reach your webserver (i.e. http://xxx.xxx.xxx.xxx:8080).

Re: XAMPP internet access and port forwarding

PostPosted: 31. March 2008 23:31
by BlizzofOZ
Nobbie wrote:
BlizzofOZ wrote:How do I enable it so that I (or friends) be able to access via the internet?

Either by using my outside IPaddy or hostname.


It is enabled per default - you dont need to enable anything.

BlizzofOZ wrote:I also believe my ISP blocks port 80... how do I port forward 80 to another port? I know how to do this in my router setup, but not on XAMPP side.


You cannot forward a port which is blocked by our ISP - blocked is blocked. You must configure Apache to LISTEN to different port than 80 - use directive LISTEN 8080 for example to listen on port 8080.

Or you may configure your router to map external port 8080 to internal port 80 - but in any case, the clients outside have to specify port 8080 in order to reach your webserver (i.e. http://xxx.xxx.xxx.xxx:8080).



Yes, exactly... I need to know which conf files need to be changed from listening 80 to, like your example, 8080.

I've tried /etc/apache2/ports.conf and /opt/lampp/etc/httpd.conf

When I change /opt/lampp/etc/httpd.conf and then restarting XAMPP, it gives me an error. I posted this error just recently, but now I know it was caused by changing that conf file.

So, I need to know the conf file(s) that need to changed if I want to listen to a different port.

PostPosted: 01. April 2008 00:17
by Wiedmann
Now I need to know which conf file(s) need to be changed so that I could listen on a different port.

"/opt/lampp/etc/httpd.conf"

AFAIK you must also change the script "/opt/lampp/lampp"

PostPosted: 01. April 2008 00:44
by BlizzofOZ
Wiedmann wrote:
Now I need to know which conf file(s) need to be changed so that I could listen on a different port.

"/opt/lampp/etc/httpd.conf"

AFAIK you must also change the script "/opt/lampp/lampp"


When I change the LISTEN from 80 to my new port and restart XAMPP, I I get the error of:

Error 1! Couldn't start Apache!
Starting Diagnosis ...

Not sure what I'm doing wrong...

PostPosted: 01. April 2008 01:27
by Wiedmann
Not sure what I'm doing wrong...

Wiedmann wrote:AFAIK you must also change the script "/opt/lampp/lampp"

PostPosted: 01. April 2008 01:48
by BlizzofOZ
Wiedmann wrote:
Not sure what I'm doing wrong...

Wiedmann wrote:AFAIK you must also change the script "/opt/lampp/lampp"


BINGO! Thanks, that did it!

I can not access my Xammp server from internet either

PostPosted: 05. April 2008 05:37
by ian11
Is it possible that my 80 port is blocked by my isp as well? how do you tell? My server runs from localhost on the box but no access from other box and internet.....do not know why....Please help!
ian11

PostPosted: 12. October 2008 14:16
by root11
BlizzofOZ wrote:
Wiedmann wrote:
Not sure what I'm doing wrong...

Wiedmann wrote:AFAIK you must also change the script "/opt/lampp/lampp"


BINGO! Thanks, that did it!


I have the SAME problem.. could you please tell me what i should change in the script? please!