Can't Connect using External IP

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

Can't Connect using External IP

Postby daniel_9 » 04. February 2013 19:56

I have installed Windows 8 Professional and XAMPP version 1.8.1. Please don't be scared away by the "Windows 8" thing - I'm pretty sure the problem is with Apache, not Windows.

So I installed everything, added a web page, set up port forwarding, and set up the listen port on my httpd.conf. I had to set it up to use a non-standard port (27105) because my ISP reserves port 80. Whatever.

I connected to localhost:27105 and it works fine! I see the web page. When I go to x.x.x.x:27105, it does not work.

So I went to www.canyouseeme.org and checked port 27105. It failed! So I went to Windows Firewall and added inbound exceptions for that port, and now canyouseeme.org reports success on port 27105. When I turn off apache, it fails. So far, so good.

But when I connect to my IP as I mentioned above, it still fails. It just times out.

I have made the following changes to httpd.conf:
1) I changed "Listen 80" to "Listen 27105"
2) I changed "Servername localhost:80" to "Servername [my external ip]:27105" (though I've tried a number of settings here, to no avail)
3) I added a line: "Alias /xampp "C:/xampp/htdocs/xampp"" in the Alias section. This alias works fine on my local connection.

I also changed the default index.php in htdocs to point to my web directory (/htdocs/tam) which contains a drupal installation. As I said, on localhost:27105, this all loads fine.

Other than the changes to httpd.conf, this is right out of the box. I spoke to my ISP and they said that other than the port 80 issue, there's nothing on their end that's stopping me. I've tried putting my computer in the DMZ, and it doesn't help the situation at all, but the fact that canyouseeme.org reports success suggests to me that neither the router nor the windows firewall are at fault. I think the problem is from Apache rejecting external IPs. I just can't figure out how to fix it.

httpd-vhosts.conf, but I'm not quite sure what I'm doing. I tried to follow some instructions I saw online, but it didn't have any effect. I'm not even sure if that's the place I should be looking.

Any advice? I'm pulling my hair out. :(
daniel_9
 
Posts: 3
Joined: 04. February 2013 19:43
Operating System: Windows 8 Professional

Re: Can't Connect using External IP

Postby JonB » 05. February 2013 15:57

What is in the Apache error log?
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Can't Connect using External IP

Postby daniel_9 » 05. February 2013 18:44

Today I turned on the server, checked canyouseeme.org and noted that I was not connectable on the port, so I disabled my firewall, checked httpd.conf, turned off the server, turned it back on, checked canyouseeme.org again (worked!), connected to localhost (worked!) and then tried my IP address (didn't work). The pertinent section of the error log for today is:
Code: Select all
[Tue Feb 05 09:31:29.548809 2013] [core:warn] [pid 1020:tid 312] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Feb 05 09:31:29.859012 2013] [ssl:warn] [pid 1020:tid 312] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 05 09:31:29.895034 2013] [mpm_winnt:notice] [pid 1020:tid 312] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Tue Feb 05 09:31:29.895034 2013] [mpm_winnt:notice] [pid 1020:tid 312] AH00456: Server built: Aug 18 2012 12:41:37
[Tue Feb 05 09:31:29.895034 2013] [core:notice] [pid 1020:tid 312] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Feb 05 09:31:29.896037 2013] [mpm_winnt:notice] [pid 1020:tid 312] AH00418: Parent: Created child process 904
[Tue Feb 05 09:31:30.802412 2013] [ssl:warn] [pid 904:tid 328] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 05 09:31:30.837435 2013] [mpm_winnt:notice] [pid 904:tid 328] AH00354: Child: Starting 150 worker threads.
[Tue Feb 05 09:32:19.075016 2013] [core:warn] [pid 3244:tid 320] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Feb 05 09:32:19.307169 2013] [ssl:warn] [pid 3244:tid 320] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 05 09:32:19.341192 2013] [mpm_winnt:notice] [pid 3244:tid 320] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Tue Feb 05 09:32:19.341192 2013] [mpm_winnt:notice] [pid 3244:tid 320] AH00456: Server built: Aug 18 2012 12:41:37
[Tue Feb 05 09:32:19.341192 2013] [core:notice] [pid 3244:tid 320] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Feb 05 09:32:19.342193 2013] [mpm_winnt:notice] [pid 3244:tid 320] AH00418: Parent: Created child process 6580
[Tue Feb 05 09:32:20.057923 2013] [ssl:warn] [pid 6580:tid 332] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 05 09:32:20.091943 2013] [mpm_winnt:notice] [pid 6580:tid 332] AH00354: Child: Starting 150 worker threads.


The access log looks like this:
Code: Select all
::1 - - [05/Feb/2013:09:42:03 -0700] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/color/colors.css?mhk3v6 HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/style.css?mhk3v6 HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/js/supersubs.js?mhk3v6 HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/js/superfish.js?mhk3v6 HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/js/sliding_effect.js?mhk3v6 HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/js/sfmenu.js?mhk3v6 HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/default/files/Logo%20300dpi%20smallest.png HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/images/30w087b.png HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/images/slide-nav-button.png HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/images/slide-image-1.jpg HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/images/slide-image-3.jpg HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/images/slide-shadow.png HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:06 -0700] "GET /TAM/sites/all/themes/business/images/slide-image-2.jpg HTTP/1.1" 304 - "http://localhost:27105/TAM/" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"
::1 - - [05/Feb/2013:09:42:03 -0700] "GET /TAM/ HTTP/1.1" 200 18561 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17"


I'm using the latest stable chrome build, but that shouldn't make a difference. Is this what you were looking for? I am untrained in reading these, but I don't see anything that leads me to understand what error could have occurred.
daniel_9
 
Posts: 3
Joined: 04. February 2013 19:43
Operating System: Windows 8 Professional

Re: Can't Connect using External IP

Postby JonB » 05. February 2013 19:33

OK -

The error log says Apache thinks it is basically working correctly.

Here are some possibilities/ideas -

A. IPv4 is not enabled (on the presumption that your external IP is likely IPv4 and not IPv6) I see all the requests coming from ::1

B. You might want to look in the XAMPP Control Panel dialogue box and see what it thinks.

C. One test might be to see if you can connect to http://127.0.0.1

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Can't Connect using External IP

Postby daniel_9 » 06. February 2013 07:25

Well, the plot thickens, I guess: I was unable to connect to my IP address on my own computer. That's how I was testing. But when I used my cell phone (from 4G rather than intranet), it connected fine! This means that the web page is UP, it's just not letting me load it from the local machine. Interesting.

Anyway, thanks for the input. At least I have a better idea of what exactly isn't working.
daniel_9
 
Posts: 3
Joined: 04. February 2013 19:43
Operating System: Windows 8 Professional

Re: Can't Connect using External IP

Postby JonB » 07. February 2013 22:19

Its is probably a problem with NAT Traversal/loopback via IPv6.

Try enabling IPv4 (you never answered that question/concern)

Good luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 129 guests