-
Finding the computer name
How can I find the name of my computer by program?
Does it exists any method?
-
Re: Finding the computer name
hi joseph,
use java.net.URL class to find it...!
"Joseph Berdat" <jberdat@eim.ch> wrote:
>How can I find the name of my computer by program?
>Does it exists any method?
>
>
-
Re: Finding the computer name
please try the following...
InetAddress.getLocalHost().getHostAddress()
cheers,
Nikhil
"Satish Pamidimarthi" <java@hamarashehar.com> wrote:
>
>hi joseph,
> use java.net.URL class to find it...!
>
>
>"Joseph Berdat" <jberdat@eim.ch> wrote:
>>How can I find the name of my computer by program?
>>Does it exists any method?
>>
>>
>
-
Re: Finding the computer name
My last answer will give you the IP Address, if u need the name then use InetAddress.getLocalHost().getHostName()
Sorry for that,
Nikhil
"Nikhil" <mamo_nil@hotmail.com> wrote:
>
>please try the following...
>
>InetAddress.getLocalHost().getHostAddress()
>
>cheers,
>Nikhil
>
>"Satish Pamidimarthi" <java@hamarashehar.com> wrote:
>>
>>hi joseph,
>> use java.net.URL class to find it...!
>>
>>
>>"Joseph Berdat" <jberdat@eim.ch> wrote:
>>>How can I find the name of my computer by program?
>>>Does it exists any method?
>>>
>>>
>>
>
-
Re: Finding the computer name
hi nikhil,
oops I forgot the class name.. yup it was InetAddress...!
bye,
Satish Pamdimarthi
"Nikhil" <mamo_nil@hotmail.com> wrote:
>
>please try the following...
>
>InetAddress.getLocalHost().getHostAddress()
>
>cheers,
>Nikhil
>
>"Satish Pamidimarthi" <java@hamarashehar.com> wrote:
>>
>>hi joseph,
>> use java.net.URL class to find it...!
>>
>>
>>"Joseph Berdat" <jberdat@eim.ch> wrote:
>>>How can I find the name of my computer by program?
>>>Does it exists any method?
>>>
>>>
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|