local host name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is a question I'm sure is silly, but not nearly as silly as I would feel
after banging my head against a wall anymore.

I don't want to require a user to figure out the name of his computer or
account. How do I dynamically get the name of the local host? I need this to
creata a small database in the application.

Thanks
Matt
 
You could just use LOCALHOST or 127.0.0.1. Is there any particular reason
you'd rather get the machine name?

-Alt
 
Back
Top