Find primary IP address

Posted on 2005-04-12
Last Modified: 2012-08-13
Hi there,

I have a 'dedicated' ip address that is an alias for a user homepage on a shared account, i.e. I have an ip address like where takes you to my homepage, which is really at I need to figure out the primary address (i.e. based on the secondary one that I know (i.e. Is there a way to do this?

Question by:nicholassolutions
    LVL 1

    Assisted Solution

    Do you have access to this machine?

    You could look in the host file /etc/hosts on the server to see what it might be.  The command 'ifconfig -a'  might shed some light.

    If those doesn't help try opening a command line and running 'tracert' (tracepath in linux).

    Those are just some ideas.  Since I don't know your exact situation I'm going to suggest you also try Ethereal to further analyze your network if you are still stuck.
    LVL 3

    Expert Comment


    well, it really looks like a redirect to me, are and both public ips, or are they domain names?

    LVL 15

    Author Comment

    it may just be a redirect     and     and    

    all take you to username's homepage, while   takes you to the typical cPanel, "No site is configured at this address" page.
    LVL 3

    Accepted Solution


    try using telnet to port 80, you might be able to see the redirect headers or wget/lynx in verbose mode.

    I am pretty sure the LWP CPAN module has a way to tell the difference..
    LVL 15

    Author Comment

    Hey guys,

    I never did figure this out completely, but the larger problem which caused me to ask the question got solved, so no big deal. Thanks anyway for the help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now