LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2005, 08:52 AM   #1
khwang
LQ Newbie
 
Registered: Jun 2005
Location: Canada
Distribution: Ubuntu Hoary
Posts: 25

Rep: Reputation: 15
Complete Newbie to Apache here


I have 3 machines hooked up to one Linksys router (internal network). One machine is running Apache2, so I want it to be a webserver. I did an IP check, but all three machines have the same IP.

So how can I access the webserver machine with my web browser?

On a scale of 1 to 10, 10 being uber nube, how n00bish was this question?
 
Old 06-30-2005, 09:00 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
how did you check the ip addresses? How are the machines connected (wired or wireless)? Also it is highly unlikely that you would have same IP address for all three machines.

To connect to the machine running the server, open up your browser and type the ip address of the machine running the web server.

Tux,

Edit: On scale of 1 to 10, i would rate it a 0

Last edited by tuxrules; 06-30-2005 at 09:02 AM.
 
Old 06-30-2005, 09:33 AM   #3
khwang
LQ Newbie
 
Registered: Jun 2005
Location: Canada
Distribution: Ubuntu Hoary
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tuxrules
how did you check the ip addresses? How are the machines connected (wired or wireless)? Also it is highly unlikely that you would have same IP address for all three machines.
It's a wired connection, not wireless. It's a little, 10/100 5-port Workgroup Switch from Linksys.

I used this webpage to check my ip address: http://www.sinc.sunysb.edu/cgi-bin/MyIP

And the same IP address came up for two machines, I haven't checked the third one yet.

I did open up a web browser, typed in the ip address (and the port number, because I went into the config and edited it so it's not listening to port 80). Nothing came up.
 
Old 06-30-2005, 12:31 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
It isn't a lack of linux knowledge that is your problem, it is networking. That web page you posted gives you your "real world" IP, which is why all 3 computers had the same. That IP address actually belongs to the router. You fail to see a website because the router is not set to forward requests on whatever port you chose to the computer running Apache. You need to do 2 things - find out your local IP address, and forward requests at port whatever to the Apache server. For linux, /sbin/ifconfig will give you the IP addresses of the wired ethernet cards. Since you're behind a device, you will mostlikely have a local IP of 192.168.X.X, 172.16.X.X->172.31.X.X, or 10.X.X.X. Once you find out the IP address of the Apache box, you'll be able to see it from the other computers in your LAN, again with the specified port. If the other boxes run another nasty operating system, open a command prompt and type ipconfig, and that tells your IP address.

Then if you want the website to be seen on the net, you need to configure the router to pass the requests for port whatever to the Apache box.

Peace,
JimBass
 
Old 06-30-2005, 01:03 PM   #5
khwang
LQ Newbie
 
Registered: Jun 2005
Location: Canada
Distribution: Ubuntu Hoary
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by JimBass
You need to do 2 things - find out your local IP address, and forward requests at port whatever to the Apache server. For linux, /sbin/ifconfig will give you the IP addresses of the wired ethernet cards. Since you're behind a device, you will mostlikely have a local IP of 192.168.X.X,
Thanks for your help!

I did /sbin/ifconfig, and my ip was 192.168.x.x

So I went to the other machine (which is running another operating system), opened up a web browser, typed in the ip (and the port I'm using) and it worked!

So now I am able to have the code/database reside on the Linux machine, and then my co-worker can insert/update/delete records on a W*****s machine.

World domination can't be far behind.
 
Old 06-30-2005, 01:31 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Cool, glad it all worked out!

FYI, it is always safe to post 192.168 addresses in full. You can't reach 192.168 over the internet, only a LAN/WAN, so you could have posted the full address, and nobody could have touched your box.

Peace,
JimBass
 
Old 06-30-2005, 05:11 PM   #7
khwang
LQ Newbie
 
Registered: Jun 2005
Location: Canada
Distribution: Ubuntu Hoary
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by JimBass
FYI, it is always safe to post 192.168 addresses in full. You can't reach 192.168 over the internet, only a LAN/WAN, so you could have posted the full address, and nobody could have touched your box.
OK, thanks for the info.
 
  


Reply



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
complete newbie cant use wine?? pengy666 Linux - Software 3 05-07-2005 01:55 PM
complete newbie karmologyclinic Linux - Hardware 1 04-02-2005 04:36 PM
Complete Newbie reset Linux - Newbie 15 08-31-2003 02:21 PM
Complete newbie dat_chibi Linux - Newbie 5 12-01-2002 12:50 PM
Help Please..complete newbie. scoops98 Linux - Software 7 11-27-2001 04:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:34 AM.

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