12 Replies - 5710 Views - Last Post: 21 January 2008 - 05:44 PM

#1 JC199  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-January 08

I cannot connect to my web server from the internet

Posted 21 January 2008 - 03:05 PM

About a month ago, I bought a web server and set it up, ever since then I have been working on my website. Yesterday I called my friend to see what his opinion was on the web site I created, but he could not connect to my web server, I can access it through my Local area network without a problem. I have purchased a domain name & have all the DNS setting set up. I cannot figure out why I can't connect to it if I am not on my own LAN.

Server information:
listening Port: 6000
Server service: Apache 2.2.3

Any advice would be appreciated!

This is my first time posting here, so if I did something wrong, please let me know!

Is This A Good Question/Topic? 0
  • +

Replies To: I cannot connect to my web server from the internet

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5246
  • View blog
  • Posts: 27,060
  • Joined: 10-May 07

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 04:24 PM

View PostJC199, on 21 Jan, 2008 - 03:05 PM, said:

About a month ago, I bought a web server and set it up, ever since then I have been working on my website.

1.) Have you ever been able to view your website from outside of your home network?
2.) Is the Apache web server setup to listen to standard port 80 requests?
3.) Have you forwarded all outside requests from your router (or switch) to the internal ip address of the server?
4.) Are you running DHCP?
4 a.) Has the lease for the local ip address expired & a new one was assigned?
5.) Has the lease on your external (routable) ip address expired & a new one was assigned?
6.) Can you resolve the ip (& verify it is the correct ip) from outside of your network?
7.) restart the Apache service.

[edit]I just noticed that you are listening on the non-standard port 6000, are you forwarding port 80 requests to that port?[/edit]

This post has been edited by no2pencil: 21 January 2008 - 04:26 PM

Was This Post Helpful? 0
  • +
  • -

#3 JC199  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-January 08

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 04:37 PM

View Postno2pencil, on 21 Jan, 2008 - 04:24 PM, said:

View PostJC199, on 21 Jan, 2008 - 03:05 PM, said:

About a month ago, I bought a web server and set it up, ever since then I have been working on my website.

1.) Have you ever been able to view your website from outside of your home network?
2.) Is the Apache web server setup to listen to standard port 80 requests?
3.) Have you forwarded all outside requests from your router (or switch) to the internal ip address of the server?
4.) Are you running DHCP?
4 a.) Has the lease for the local ip address expired & a new one was assigned?
5.) Has the lease on your external (routable) ip address expired & a new one was assigned?
6.) Can you resolve the ip (& verify it is the correct ip) from outside of your network?
7.) restart the Apache service.

[edit]I just noticed that you are listening on the non-standard port 6000, are you forwarding port 80 requests to that port?[/edit]


No, I have never been able to view it outside of my LAN

Apache is set up to listen to port 6000 requests

Yes

I don't think that I am running DHCP, I don't know what that is :blink:

No

Quote

6.) Can you resolve the ip (& verify it is the correct ip) from outside of your network?

How can I do that?

I have

Yes, I am useing "ZoneEdit's" "WebForward"


Thank You
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5246
  • View blog
  • Posts: 27,060
  • Joined: 10-May 07

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 04:57 PM

The standard port for requesting websites is port 80. You absolutly must listen for this port on your outside (resolvable) ip address. When someone makes a request for a website, it resolves the domain name to the ip address. Once the viewer has that ip address it'll make a request to port 80, of that ip address. That is your cable modem/dsl modem, or whatever device that you have that connects your network to the rest of the world. That device is handing those port 80 requests to your internal network device that shares that external traffic device. This is probably a router or a switch. From there the port 80 address needs to be told which internal ip address to send the port 80 request. You need to forward the port 80 requests to your web server.

From there, if you insist on having Apache listen on port 6000, you'll need to forward all port 80 requests to port 6000. This will need to be done on the actual server. You'll need to look up how to forward ports for which-ever OS is running on this server.

I hope this helps, post if you have any more problems.
Was This Post Helpful? 0
  • +
  • -

#5 JC199  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-January 08

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:10 PM

Ok, I changed the Listening port to 80, I can view it in my LAN, but I don't have a way to test it outside of my Network, I can give you the link to the server if somebody will try it for me.

Thanks!
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5246
  • View blog
  • Posts: 27,060
  • Joined: 10-May 07

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:14 PM

View PostJC199, on 21 Jan, 2008 - 05:10 PM, said:

Ok, I changed the Listening port to 80, I can view it in my LAN, but I don't have a way to test it outside of my Network, I can give you the link to the server if somebody will try it for me.

Thanks!

Post your external ip address (the one given to you by your isp).

Do you have the router forwarding port 80 requests to the ip address of the server?
Was This Post Helpful? 0
  • +
  • -

#7 JC199  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-January 08

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:23 PM

external ip: 192.168.1.3

Yes, port 80 requests are set up to be forwarded to the server

Thank you
Was This Post Helpful? 0
  • +
  • -

#8 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5246
  • View blog
  • Posts: 27,060
  • Joined: 10-May 07

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:29 PM

View PostJC199, on 21 Jan, 2008 - 05:23 PM, said:

external ip: 192.168.1.3

Yes, port 80 requests are set up to be forwarded to the server

Thank you


192.168.1.3 is not an external ip, that is an internal non-routable ip address. Meaning, it only exists on your lan. What someone will need to view your site is the ip address that is assigned to your cable modem/dsl modem or whatever device that connects your lan with to the internet.

For example :

Quote

Name: google.com
Address: 72.14.207.99
Name: google.com
Address: 64.233.187.99
Name: google.com
Address: 64.233.167.99
Name: ebay.com
Address: 66.135.192.87
Name: ebay.com
Address: 66.211.160.87
Name: ebay.com
Address: 66.135.221.10


There are 3 non-routable ip address ranges.

For more information on non-routable ip address Wiki <--
Was This Post Helpful? 0
  • +
  • -

#9 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 43
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:38 PM

Answer the other part... Did you forward the ports from your router to your server.

Also; does your ISP allow web hosting?
Was This Post Helpful? 0
  • +
  • -

#10 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5246
  • View blog
  • Posts: 27,060
  • Joined: 10-May 07

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:39 PM

View PostMorphiusFaydal, on 21 Jan, 2008 - 05:38 PM, said:

Also; does your ISP allow web hosting?

ARG! This is how I always screw myself. I forget the easiest & simplest of solutions/questions.
Was This Post Helpful? 0
  • +
  • -

#11 JC199  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-January 08

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:42 PM

Thank You! I did not know that was the wrong ip address! (I'm new to this)

the external ip is: 68.63.133.5


Thank you!
Was This Post Helpful? 0
  • +
  • -

#12 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5246
  • View blog
  • Posts: 27,060
  • Joined: 10-May 07

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:43 PM

Quote

The webserver is working properly, thank you for your help!

-JC199

Congrats!

Just keep in mind that your isp can (& will) change your ip address. There are a few ways to work with this, but it's easiest to either pay to have a static ip address, or to buy commercial service.

Or you can use a service that will adjust your changing ip address. It'll run on your server & notify the dns provider that the ip has changed, & they'll up date on their end.

I forget whom all offers these services, but I know that it has been posted here numerous times before, & I'm sure that someone else can fill them in again. A quick Google search should turn up a bunch of web sites that offer this service.

This post has been edited by no2pencil: 21 January 2008 - 05:47 PM

Was This Post Helpful? 0
  • +
  • -

#13 JC199  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-January 08

Re: I cannot connect to my web server from the internet

Posted 21 January 2008 - 05:44 PM

Thank you!
I got a service from zoneedit .com to change my ip address automatically.

Yes, Web hosting is allowed!

This post has been edited by JC199: 21 January 2008 - 06:09 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1