Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Apache newbie - My real IP

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-08-2005   #1 (permalink)
Just Joined!
 
Join Date: Sep 2005
Posts: 6
Send a message via MSN to comanighttrain
Apache newbie - My real IP

Hey guys, im just trying to set up an apache http server for the linux project i support (LDIOS).

My computer sits behind an ADSL router and a DHCP server on a windows network.
so its like

Internet---ADSL Router---WindowsXP machine---DaveOnSlackware

I am trying to set up a apache to get my site working properly, but noone else can access it using the addresses i got from ifconfig, i tried using the eth0 inet addr

which right now is 192.168.0.211, so when i try http://192.168.0.211 i get the apache startup page, but everyone else cant get anything.

I know my ip will be changing due to the dhcp but ill be installing static ip's soon, anyway, anyone have a solution?

thanks
Dave
comanighttrain is offline  


Reply With Quote
Old 09-08-2005   #2 (permalink)
Linux Newbie
 
deek's Avatar
 
Join Date: Mar 2005
Location: Fort Wayne, IN
Posts: 248
In this type of setup: Internet -> Router -> PC, you have both an interneral IP (inside you LAN) and an external (how anyone on the internet addresses you).

What you have found, is your local IP, which is how PC's inside the router can find you. For people outside your LAN (i.e. the internet), they would have do connect to that external/public IP, which is the IP of your router. You will then have to forward any traffic to port 80 (the default for web traffic) to the PC that is running the webserver. This can be configured on your router.

I am assuming your webserver is on the slack box at 192.168.0.211. So, really, all you need to do is set up port forwarding on your router, then find out the external IP to your router (it will not start with 192.168.0.x, because that is your internal addressing) and give that to your friends.
__________________
Join the Open Source Revolution. Support GNU/Linux.

Find me at: www.deeksworld.com
Registered GNU/Linux User #395777
deek is offline   Reply With Quote
Old 09-08-2005   #3 (permalink)
Just Joined!
 
Join Date: Sep 2005
Posts: 6
Send a message via MSN to comanighttrain
ahh right, damn, its a BT router, i cant change it i dont think plus i think id have to set up port forwarding on the windows XP machine too
comanighttrain is offline   Reply With Quote
Old 09-09-2005   #4 (permalink)
Linux Guru
 
sdousley's Avatar
 
Join Date: Feb 2004
Posts: 1,767
the other thing you could do (not too sure how with a router) but setup an account on dynds download the IP updater, and when the IP changes, it'll update the DNS records for your registered DNS. That way, you tell all your frinds the DNS (eg: http://ldios.homelinux.org) and it'll always (hopefully) send them to your apache server (with the relevent port forwards)
__________________
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
sdousley is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:18 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2