Can u tell me how to check my computer ip address in java (please help me)

hi to all, can u tell me how to check my computer ip adress in java, what is the command for that

import java.net package in your code.
Then where you need to find the IP, please insert the following code.
InetAddress inAddr = InetAddress.getLocalHost();
String ipAddr = inAddr.getHostAddress();
That should do it.
Best Wishes,
Ramanujam

Similar Messages

Maybe you are looking for

  • Report Pdf output getting Junk characters for some boiler Plate fields

    Hi All For Dunning Letter Report registered in Oracle Applications,made changes in Column headings like added customer number as Kunde for German Letter but in pdf output it's appearing as junk characters even date field is happening like that. It's

  • Need help diagnosing kernel panic error-10.7.5 2006 Mac Pro

    The kernel panic went away when I removed my external firewire and usb drives. Thank you very much. Sat Jan 25 17:47:28 2014 panic(cpu 2 caller 0x2ceabf): Kernel trap at 0x01c7338c, type 0=divide error, registers: CR0: 0x8001003b, CR2: 0x72abbb00, CR

  • Unwanted noise when using effect?

    So I am VERY new to Logic, and I finally figured out how to record audio. I am trying to use the effects in the library, but they don't do anything except add unwanted noise to my recording. Also, how can I turn off an effect after I have selected it

  • Executing spatial queries on someone else's tables

    I am trying to execute a spatial query using a table owned by someone else. The SQL is... select a.plancoupe, a.coupecrop, a.ha from dba1.coupes a, dba1.coupes b where b.plancoupe = 'CM004H' and mdsys.sdo_within_distance(a.geom,b.geom, 'distance=1000

  • Dumb newbie question - where do I download com.sun.web.me.*?

    Hi, I am new to j2me programming & have just started developing apps for mobile phones. So far so good, I have Netbeans 5.5.1 with the mobility pack and have created a couple of Midlets already. To braoden my knowledge, I have downloaded a coupe of s