dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Adding More IPs

  1. #1
    Join Date
    Sep 2006
    Posts
    655

    Question Adding More IPs

    Hi

    We all know that our localhost can be accessed at 127.0.0.1 or your the IP assigned by your NIC which starts from 192.168.1.2 (or 192.168.0.2 in some cases depending on the router you use).

    My question is that, how do I map the other IPs 192.168.1.3, 192.168.1.4, 192.168.1.5 etc. etc. and have them point to my localhost?

    Please help

    Thanks

  2. #2
    Join Date
    Jun 2009
    Posts
    111
    You *probably* can't, though if the feature exists, it'd be in your router configuration.

    I think what you want to do, though, is be able to access your host on your computer from outside of your network-- in other words, you want to forward the public port 80 to the private port 80 on your computer, 192.168.1.2.

    Depending on your router, this can be done in a "(Port) Forwarding" or "Virtual Servers" section of your router configuration. Create a new entry with any name, public and private ports set to 80, private IP set to your computer's private IP (192.168.1.2 in your example), and TCP or "Both" as the protocol.

    Now when someone types your public IP address (to see what this is, go to whatismyip.com) into their address bar, your router will forward this to port 80 on your computer.

  3. #3
    Join Date
    Sep 2006
    Posts
    655
    No no no


    I want the IPs to point to different folders on my PC. I am using apache 2.2.4

    So for example:

    192.168.1.3 will point to C:\songs

    192.168.1.4 will point to C:\website\images

    192.168.1.5 will point to D:\videos


    pls help


    Many thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles