Endless Paradigm

Full Version: Getting a webserver going....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I've got Apache running on a computer and I'm trying to host some files. Simple enough.

I'm using no-ip.com to turn my dynamic IP into something a little more memorable, again simple enough. But, my router being a bitch, reserves port 80 for its online config so I'm running Apache through port 1234, forwarding port 1234 and set up no-ip.com to forward requests to port 1234. In theory that should work. But of course it doesn't.

Visiting robserv.no-ip.org just gives me a "Though the site seems valid, the browser was unable to establish a connection." error in Firefox but, when someone else other than me (I recruited the help of andrewcc for testing from another location) visits robserv.no-ip.org, Firefox gives a "Request timed out" error. Same thing happens when you try and ping me.

I've tried bypassing no-ip.com altogether by visiting my external IP with port 1234 on the end but that gives exactly the same results from both locations as typing in robserv.no-ip.org. No-IP therefore isn't the problem.

I've tested Apache also by putting my internal IP into Firefox with port 1234 on the end, that works fine. I've fiddled with firewalls and tried disabling them completely for testing, none of which made any difference.

I'm at a loss. I can't work out where exactly the problem lies. I think it may be either the router or the ISP but I can't be sure.

Help?
have you tried it with your PC added to the DMZ, see if that makes a difference? Can't imagine it would if you've tried disabling your firewall to no avail, but might be worth a check
Nah, I get exactly the same thing...
well traceroute seems to reach your IP, but then continues on and times out, and traceroute for the URL resolves at  14   173 ms   176 ms   174 ms  url-redirect.noip.net [72.5.169.70]

All i can suggest is to phone your ISP and ask them if there is something in there service preventing it, although it may take a few tries to get through to someone who both can and will help
right... I'll wait until I get a contract phone (cheaper that pay-as-you-talk) then I'll give them a call...
Spoiler for Complete traceroute for URL and IP:
Microsoft Windows [Version 6.1.7100]
Copyright © 2009 Microsoft Corporation.  All rights reserved.

C:\Users\ROB>tracert robserv.no-ip.org

Tracing route to robserv.no-ip.org [72.5.169.70]
over a maximum of 30 hops:

  1     1 ms     2 ms     3 ms  . [10.0.0.1]
  2    19 ms    18 ms    18 ms  host-92-8-96-1.as43234.net [92.8.96.1]
  3    27 ms    19 ms    19 ms  92.31.252.66
  4    25 ms    28 ms    22 ms  xe-10-2-0-scr002.log.as13285.net [78.144.2.129]
  5    23 ms    23 ms    22 ms  Opal-ge-2.2.0.mpr1.lhr2.above.net [213.161.78.209]
  6    24 ms    28 ms    22 ms  bcr1-ge-4-3-0.Londonlnx.savvis.net [195.66.224.39]
  7    23 ms    23 ms    23 ms  bcs1-so-1-1-0.Londonlnx.savvis.net [204.70.193.114]
  8    24 ms    23 ms    23 ms  cr2-pos-0-0-3-0.londonuk1.savvis.net [204.70.192.9]
  9   174 ms   177 ms   177 ms  cr1-tengig0-0-2-0.sanfrancisco.savvis.net [204.70.196.193]
10   173 ms   173 ms   174 ms  pr2-ge-0-0-0.SanJoseEquinix.savvis.net [204.70.200.197]
11   178 ms   178 ms   176 ms  208.175.172.10
12   177 ms   177 ms   177 ms  border1.te8-1-bbnet2.oak001.pnap.net [63.251.63.77]
13   176 ms   175 ms   175 ms  vitalwerks-1.border1.oak001.pnap.net [66.150.250.138]
14   173 ms   176 ms   174 ms  url-redirect.noip.net [72.5.169.70]

Trace complete.

C:\Users\ROB>tracert 88.107.48.91

Tracing route to 88-107-48-91.dynamic.dsl.as9105.com [88.107.48.91]
over a maximum of 30 hops:
  1     1 ms     2 ms     2 ms  . [10.0.0.1]
  2    20 ms    18 ms    18 ms  host-92-8-96-1.as43234.net [92.8.96.1]
  3    19 ms    22 ms    17 ms  92.31.252.98
  4    22 ms    21 ms    19 ms  xe-10-2-0-scr002.log.as13285.net [78.144.2.129]
  5    23 ms    20 ms    23 ms  xe-3-2-0-0.lon10.ip.tiscali.net [77.67.64.5]
  6    22 ms    21 ms    21 ms  tiscali-uk-gw.ip.tiscali.net [213.200.79.10]
  7    22 ms    26 ms    21 ms  ge0-0-0.lon10.as9105.net [212.74.111.229]
  8    33 ms    30 ms    33 ms  pos2-0.mk0.as9105.net [212.74.108.9]
  9    32 ms    30 ms    30 ms  pos0-0.sa-bham0.as9105.net [212.74.108.14]
10    32 ms    31 ms    31 ms  pos0-0.lei0.as9105.net [212.74.109.213]
11    31 ms    31 ms    31 ms  pos0-0.not1.as9105.net [212.74.109.226]
12    30 ms    32 ms    31 ms  pos0-0.sfd1.as9105.net [212.74.108.206]
13    31 ms    32 ms    31 ms  ge1-1.sfd0.as9105.net [212.74.109.234]
14    29 ms    30 ms    30 ms  ge1-0-0-8.sfd-0-dsl.as9105.net [212.74.106.177]
15    68 ms    69 ms    70 ms  88-107-48-91.dynamic.dsl.as9105.com [88.107.48.91]
16     *        *        *     Request timed out.
17     *        *        *     Request timed out.
18     *        *        *     Request timed out.
19     *        *        *     Request timed out.
20     *        *        *     Request timed out.
21     *        *        *     Request timed out.
22     *        *        *     Request timed out.
23     *        *        *     Request timed out.
24     *        *        *     Request timed out.
25     *        *        *     Request timed out.
26     *        *        *     Request timed out.
27     *        *        *     Request timed out.
28     *        *        *     Request timed out.
29     *        *        *     Request timed out.
30     *        *        *     Request timed out.

Trace complete.

C:\Users\ROB>
Just in case anyone else sees something i can't, but i tried the URL, and the IP that firefox said it resolved to (different to the one tracert resolved to)
Routers will probably drop ICMP packets so ping and traceroute are unlikely to work.

As for your issue, what interfaces is Apache listening on?  Check the config file for a "Listen" directive.
I'm running Apache on an old P3-256MB-500GB computer mounted in a drawer (oh yeah... ghetto...). It connects to my home network with a USB WiFi dongle, so I'm assuming that's what Apache is listening on. I've set it to listen on port 1234 (because my router reserves port 80 for its online config) using this:

Code:
#
# 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 1234


From reading various tut's on the internet I think that is correct.

Can you post the entire configuration file?
is port 1234 forwarded to the computer running the server? (in router settings)
also try going to localhost:1234 on the server computer
Pages: 1 2 3
Reference URL's