Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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, so when i try 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?


  2. #2
    Linux Newbie deek's Avatar
    Join Date
    Mar 2005
    Fort Wayne, IN
    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 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:
    Registered GNU/Linux User #395777

  3. #3
    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

  4. $spacer_open
  5. #4
    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: 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts