Corporate Info | News | Solutions | Products | Partners | Services | Events | Download | How To Buy

# How to determine your IP address Contents Determining your IP address with a WebLogic utility program Determining your IP address on a Solaris machine Determining your IP address on an IRIX machine Determining your IP address on a Windows NT machine # Determining your IP address with a WebLogic utility program If you have already installed and compiled the WebLogic classes on this machine, you can use a WebLogic utility to determine your IP address:
      $ java utils.myip
It returns, for example:
    Host bigbox is assigned IP address: 224.91.91.65
# Determining your IP address on a Solaris machine You can ping your machine, or if you do not know the name of your machine, you can ping `hostname`. Be sure that you enclose hostname in single backquotes. For example,
      $ ping -s `hostname` 10 1
returns:
    PING mymachine.com: 10 data bytes
    18 bytes from mymachine.com (192.1.1.1): icmp_seq=0. time=0. ms

    ----mymachine.com PING Statistics----
    1 packets transmitted, 1 packets received, 0% packet loss
    round-trip (ms)  min/avg/max = 0/0/0
Your IP Address is the number in parentheses in the information returned. # Determining your IP address on an IRIX machine You can ping your machine, or if you do not know the name of your machine, you can ping `hostname`. Be sure that you enclose hostname in single backquotes. For example,
      $ ping `hostname`
returns:
    PING mymachine.com (192.1.1.1); 56 data bytes
    64 bytes from 192.1.1.1; icmp_seq=0 ttl=255 time=1.895 ms
    64 bytes from 192.1.1.1; icmp_seq=1 ttl=255 time=6.234 ms
    64 bytes from 192.1.1.1; icmp_seq=2 ttl=255 time=1.257 ms
    64 bytes from 192.1.1.1; icmp_seq=3 ttl=255 time=1.188 ms

    --- myserver.com ping statistics ---
    4 packets transmitted, 4 packets received, 0% packet loss
    round-trip min/avg/max = 1.188/2.414/6.234 ms
Your IP address is in parentheses on the first returned line of output. # Determining your IP address on a Windows NT machine The command:
      C:\java> ipconfig
returns:
    Windows NT IP Configuration
    Ethernet adapter Elnk61:
            IP Address. . . . . . . . . : 192.1.1.1
            Subnet Mask . . . . . . . . : 255.255.255.0
            Default Gateway . . . . . . : 190.10.10.1

Copyright © 2000 BEA Systems, Inc. All rights reserved. Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher. Last updated 01/13/1999