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
 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
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,764
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
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 07:44 PM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2