How to find out my IP address?

Discussion in 'Technical' started by lola, Apr 20, 2005.

  1. lola

    lola New Member

    Is there a way I can find out my IP address on my new SuSE 9.2 system? :confused:

    lola
     
  2. tommyboy

    tommyboy New Member

    Log in to a shell, and run

    Code:
    ifconfig
    It shows you all your network cards and their current IP adresses.

    Tom
     
  3. lola

    lola New Member

    Thanks Tom, that does the trick! :)

    lola
     
  4. Gorgonzola

    Gorgonzola New Member

  5. sbovisjb1

    sbovisjb1 Member HowtoForge Supporter

    script for it

    When run by itself, whoami looks like this:
    $ whoami
    sbovisjb1

    That should be sufficient to give you the clue on how to implement the test you seek:
    if [ $(whoami) = "sbovisjb1" ]
    then
    execute the code, we're the right user
    else
    echo "You must be user 'joe' to run this script."
    exit 0
    fi

    You can modify this to match the user or set of users you want to allow, or you can negate the logic to screen out bad userIDs immediately, like this:
    if [ $(whoami) = "root" ]
    then
    echo "You cannot run this script as root."
    exit 1
    fi

    original source: http://www.askdavetaylor.com/how_can_shell_scripts_check_user_id.html
     
  6. sbovisjb1

    sbovisjb1 Member HowtoForge Supporter

    Found it

    I mentioned a website where you can check you're ip adress history... i believe the feds use this... :)

    http://www.iptagger.com/
     
  7. Londoner

    Londoner New Member

    Finding your IP address

    Another good site for finding info on your IP address is:
    IP Notes - Find out your IP address
    (copied from my bookmarks)
    It also sticks your location on a Google Map - quite funky.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    That's a nice feature - although it's showing my ISP's location and not mine. But still interesting. :)
     
  9. Hans

    Hans Moderator Moderator

  10. dipeshmehta

    dipeshmehta Member

  11. matey

    matey New Member

    the feds?
    eekh, I like to give them piece of my mind. those buzzards (wearing an eagle costume)! x(
    :mad:
     
  12. miltonhork

    miltonhork New Member

    Hi dude,

    There are lots of ways to know your IP address. Some of them are here :

    IP2location.com
    whatismyip.com
     
  13. antonibede

    antonibede New Member

    Hey nowadays, just go on google and write "What is my ip address" in the
    search engine. It'll give you readyment answer. Other wise ip2location. com use this one..
     
  14. Cracklight

    Cracklight New Member

  15. BorderAmigos

    BorderAmigos New Member

    Any external website that has the follow code on a page with server side includes will echo your internet address (not your local address). If you run multiple servers it can be useful to have this on them so you can reference it. I have a server in a data center with fixed IP and a server at home with dynamic IP. The home server will check it's address from the external server and rewrite it's DNS if the address changes. Kind of what dyndns will do for your domain name but I don't have to pay someone else for it.

    Code:
    <!--#echo var="REMOTE_ADDR" -->
    
     
  16. eyeoncomputers

    eyeoncomputers New Member

    Suggestions noted above are a good way to find your IP. But it depends on what you are doing and how your network is configured. For example you may need to NAT out to the internet. So this is something to keep in mind.
     
  17. grtoftis

    grtoftis New Member

    Hi,
    there are two types of ip address.that is system ip address and internet ip address.here you dind't mention about which one.if you need system ip address means you can just follow the instructions below.
    start-->run-->Type cmd-->Type ipconfig.
    you will get the system ip address.or else if you need internet ip address means you can visit the site www.ip-details.com here you can get the ip address just by visiting the site.i think this information is useful for you to get ip address.
     
    Last edited: Oct 21, 2011

Share This Page