LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2005, 11:30 AM   #1
Goblin82
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Rep: Reputation: 0
Shared Connection & Apache probs


hey all, I have a shared internet connection on my network. My network consists of 2 windows boxes and 1 linux box. The internet works fine on all computers and apache works on the computer that hosts the internet connection. What I'm trying to do is get apache running on my linux box but I don't know how to set it up so other people can see my website. Like I have apache running and set up on my linux box and test it out internally using 127.0.0.1 but when I go to test it out using my internet IP it says it can't connect to host, same goes for others who try to connect. Is there a way I need to configure apache for it to work with a shared connection?? I'm also using no-ip ip updater to update my ip address.

any help would be appreciated.
 
Old 02-19-2005, 12:34 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

How are your computers connected to the internet?
 
Old 02-19-2005, 12:40 PM   #3
Goblin82
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Original Poster
Rep: Reputation: 0
they're connected with a DSL Modem and the network is connected with just a switch, all harware and software firewalls have been shut off to try and make this easier. My network is just a home LAN Network, my main windows box hosts the internet connection and it's shared on the network. When I installed linux it seemed to have picked up the connection and I'm able to surf the internet with it (sorry I'm a semi-newb when it comes to linux).

I did notice that when I have my linux box and I go to http://www.whatismyip.com/ I get the same ip as the windows box who's sharing the internet connection.
 
Old 02-19-2005, 12:45 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Since your windows box has the public ip address you will need to forward port 80 from the windows box to port 80 on the linux box. There are a number of programs to do this such as AnalogX portmapper:
http://www.analogx.com/contents/down...rk/pmapper.htm

Then anyone outside your network should be able to access your site via the ip address you get from http://www.whatismyip.com/

You can test access outwith your network yourself by using a web proxy such as proxyfy or guardster:
http://www.proxify.com
http://www.guardster.com
 
Old 02-19-2005, 12:58 PM   #5
Goblin82
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Original Poster
Rep: Reputation: 0
wow ok I downloaded the portmapper prog but I have no idea how to set that up, if I do set it up and redirect port 80 to my linux box is that gonna screw things up on my windows box surfing and downloading-wise on the internet?

also if I'm running more than one service on my linux box like game servers and such would port forwarding cause lag?
 
Old 02-19-2005, 01:06 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by Goblin82
wow ok I downloaded the portmapper prog but I have no idea how to set that up, if I do set it up and redirect port 80 to my linux box is that gonna screw things up on my windows box surfing and downloading-wise on the internet?
No, it will only affect incomming connections. Just enter 80 in the port boxes and the local ip address of your linux box in the destination address.

Quote:
Originally posted by Goblin82
also if I'm running more than one service on my linux box like game servers and such would port forwarding cause lag?
Port forwarding itself wouldn't cause a lag but the more data you transmit over your network the slower it is likely to be.
 
Old 02-19-2005, 01:13 PM   #7
Goblin82
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Original Poster
Rep: Reputation: 0
alright now how do I get the ip of my linux box? I tried running ifconfig but the only ip I get is the internal one (127.0.0.1). I tried ping with my windows box but I have no idea what's the name of my linux box... lol I'm such a newb..
 
Old 02-19-2005, 01:17 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
127.0.0.1 is the loopback, you should also have an ethernet card - probably eth0. Try:
ifconfig eth0
 
Old 02-19-2005, 01:29 PM   #9
Goblin82
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Original Poster
Rep: Reputation: 0
ok I got my linux ip but now the mapper keeps saying "failed to listen on maping 80:192.168.0.157" any idea why?

edit: oops nevermind I forgot to shut off my services on my windows box, it works now. You're a genius! thanks for all the help!

Last edited by Goblin82; 02-19-2005 at 01:32 PM.
 
Old 02-19-2005, 01:31 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It looks like you have put the ip address in the source field and not in the destination
 
  


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
shared internet connection zoffmann Linux - Networking 2 06-15-2005 04:51 PM
Java & JOGL & udev install on Fedora probs! striderwho Linux - Newbie 0 01-30-2005 03:44 AM
Cant get internet of shared XP connection... Dover1123 Linux - Networking 5 07-29-2004 07:07 PM
Audacity probs, MDK 9.2, GNOME libwx_gtk-2.4.so: cannot open shared object file Ygarl Linux - Software 1 06-01-2004 02:02 PM
internet connection probs Scruff Linux - General 5 10-24-2002 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 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