Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Host name

 
lynda leanne
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help, how do you read the name of the host computer? I think you use getLocalHost() but have no idea how. An example would be really great.
thanks in advance,
Lynda
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what context is your app running? Is it an Applet? Is it a Servlet?
 
lynda leanne
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its an applet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic