Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-24-2004, 11:33 AM   #1
LQ Newbie
Registered: Sep 2003
Location: india
Distribution: redhat
Posts: 18

Rep: Reputation: 0
how to make my computer avilable on internet as webserver

i installed apache as web server ,
but now i want to make my computer as webserver over net.
how to make it,....
I use internet in lan,
my ip in lan is,
my gateway is
and i use primary dns as
and secondary dns is
now how to make my pc online
Old 10-24-2004, 11:47 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
People need to know how to find your webserver, eg.. or

This means registering either a domain name or just using it's internet ip number.

Your gateway will need to be told to forward (DNAT) port 80 to your server

Your apache config file will need to have either your domain name or ip number in the NameVirtualHost value. When the server starts it will try to find a dns server that validates the domain name or ip number, so you can put it in /etc/hosts

More instructions are on the LQ Wiki..
Old 10-24-2004, 12:32 PM   #3
LQ Newbie
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
I found it to be a bit easier than that, but this may be a special case.

I have a cable modem which allows multiple ip addresses. The modem plugs into a hub, then each computer on the hub gets an ip address from the modem. So, my server has a direct connection to the outside. Run ifconfig to get your internet ip address, then the world can get at your machine by You do not need a domain name yet. This address will change over time, but the reality is that the service providers change these very rarely. I have had the same ip address for 6 months.
When you are ready, buy and register a domain name, then find a dns service that allows dynamic dns, so you can change where the name points to when your provider changes your ip address.

If you are allowed only one ip, then set up a router, open the 'dmz' to point to the local address of the server machine, or open port 80 to point to the local machine. at Then you find your ip address from the router, and proceed as above.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how i can make connect to internet through another computer ibrhaidar Linux - Networking 2 12-25-2004 11:41 AM
Internet is slower on my win computer than on my linux computer eXor Linux - Networking 1 12-03-2004 08:58 AM
Trying to access my webserver from a different computer. cpv204 Linux - Newbie 6 12-13-2003 12:05 PM
How to set up my computer as a webserver bcarl314 Linux - Newbie 4 11-02-2003 09:05 AM
how to make linux as webserver and other windows as clients for browsing the internet halovivek Linux - Networking 3 09-01-2003 10:29 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration