Find primary IP address

Posted on 2005-04-12
Medium Priority
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
  • 2
  • 2

Assisted Solution

arosboro earned 375 total points
ID: 13768448
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.

Expert Comment

ID: 13769482

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

LVL 15

Author Comment

ID: 13769748
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.

Accepted Solution

esanchezvela earned 375 total points
ID: 13770849

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

ID: 14001492
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!

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Screencast - Getting to Know the Pipeline

864 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