-
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks