Apache Web Server
--
Questions
--
Followers
Top Experts
I am trying to host a website on my local computer. Â I have purchased a static IP from comcast, and they have "pinged" it to verify it is working, but when I try to access my website, the connection times out after about a minute, saying the server where the page is located is not responding. Â I am able to access the internet using this static IP from the computer, so I know it is connected. Â When I type "localhost" on my computer, the website appears, so I know my websharing is on. Â Any help will be greatly appreciated!
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
First of all what Comcast Help tol you is they are able to ping your IP because it is assigned to your modem. So what you have to do now is make port mapping  work. So that whenever someone accesses your static IP and port 80 your modem must map it yto your PC located in your intranet.
BTW keep in mind that you'll not be able to access your PC with your static IP address while you are located in your intranet. This is becasue NAT works when you are outside and connecting to your modem from internet.
Cheers,
K.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I do have another PC on the intranet and am able to access the website using my internal IP address. I should explain a little further:
I have two lines coming into our shop. Â One is a dynamic IP through Verizon which is connected to a WiFi router which then connects all our workstations. Â It is through this intranet that I am able to see my computer's website. Â The static IP through comcast does not hook to a router. Â When I connect is to my computer (and disable the computer's WiFi connection), I am unable to access the webpage via the static IP. Â I'm not sure how to set the port settings. Â I've attached a screen shot of my modem's settings. Â Perhaps you could walk me through it.
I understand. Â I'm only able to have the website viewed locally when I am on the intranet. Â However, when I switch over and hook my computer up to my comcast static IP, I cannot access the website by typing in the static IP.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Have you checked to make sure your computer in fact has the correct IP?
If your webserver is a Mac, type
ifconfig
in a terminal window.
Also can you please provide the following details for your Mac (guessing a Mac from the tags above, as you haven't explicitly stated) that your going to use as the Apache server:
How do you physically connect to the Comcast modem / router {Network Cable, USB cable, wi-fi}
How do you physically  connect to the Verizon router {Network Cable, wi-fi}
Also is the Comcast box a modem or a NAT'ing router?
I ask as you can easily bind multiple IP's to a single Network card on your MAC, or if using separate interface cards just bind one IP to each card in your Mac, and enable both. Anyway the Mac can simultaneously belong / connect to both your Comcast and Verizon networks, you just need to ensure the COMCAST box is you default gateway, and you have a routing rule, back to the Wifi router for IP's in the other private sub-net  e.g.
PUBLIC IP 1 ----- Â
            /
            ----->COMCAST <---Port 80---->  #-----10.0.0.#-------# Â
                                     #  YOUR MAC     #
             ----->Wi-fi Router-----.....---->   #----192.168.0.#---# Â
            /             Â
PUBLIC IP 2 ----
Oh, if it's MAC OS X and you have a single Network card you can allocate a second IP's under: Â Network Preferences: -> "Network port configurations" -> "Built-in Ethernet"
If just one card click "Duplicate", give the Duplicate a name, such as "Public Web", then play with port 80.
If you have multiple card showing, just allocate an IP to both, and make sure they are both enabled (ON).
The following commands, that can be entered as root in a "Terminal" window may assist:
# Show Network cards and bound IP's
ifconfig
# Show current routing table
netstat-rn
# To route traffic to computers with a 192.168.#.# Â IP via the router 192.168.0.1
route add -net 192.168 192.168.0.1






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Now I got the situation. First of all:
- You connect your PC to your Comcast modem via ethernet cable
- Keep your computer connect to the wi-fi
- Edit your network settings and:
 - Make sure that there's no Default Gateway entered for the wi-fi  adapter attached to your web server
   (if your computer is getting the IP address through Wi-Fi DHCP server pull it to manual address and    assign it manually but keep the Default Gateway field empty)
  - Make sure that your wired ethernet adapter has manual  IP address configuration too. Make sure that it has  IP address / netmask and Default Gateway set properly.
Now you should be able to access your PC internally via the IP address. Your real problem is when you connect to ethernet you have 2 default gateways and thee computer may decide to use one at inappropriate times. So All pc's should have only one default gateway at all times even if it has multiple network adapters attached (Wired or Wi-Fi)
Please try it and let me know. BTW do you have a manual PDF link for your ComCast modem. If you let me know . If you don2t please contact ComCast support an get the link for the Modem Manual PDF so that I could advise you on hos to define port-mapping.
Cheers,
K.
Thanks!

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Apache Web Server
--
Questions
--
Followers
Top Experts
The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.