How to determine your IP address
Determining your IP address with a WebLogic utility programIf 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.myipIt returns, for example: Host bigbox is assigned IP address: 224.91.91.65 Determining your IP address on a Solaris machineYou 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 1returns: 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/0Your IP Address is the number in parentheses in the information returned. Determining your IP address on an IRIX machineYou 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 msYour IP address is in parentheses on the first returned line of output. Determining your IP address on a Windows NT machineThe command:C:\java> ipconfigreturns: 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.
|