how i can get computer name

hi
how i can get computer name from my web app or computer IP

The IP/name of the server the app is running on or from the computer of the visiting user?
You can get the IP from a visitor, not their computer name. As far as I know.

http://documentation.xojo.com/index.php/WebSession.RemoteAddress

ok
thanks

on windows is any way to get the user name off the computer

If the user gives it to you.

It would be VERY creepy and an invasion of privacy if a website or web app simply takes a users personal data.

In other words: you should think more about the implications of what you want to do.

ok
thanks

If you are trying to get the computer name of the computer your app is running on, just use a Shell to run hostname.

You can get the username by looking at the results of one of the SpecialFolder methods. SpecialFolder.UserHome should work.

[quote=379240:@Greg O’Lone]If you are trying to get the computer name of the computer your app is running on, just use a Shell to run hostname.

You can get the username by looking at the results of one of the SpecialFolder methods. SpecialFolder.UserHome should work.[/quote]

As this is posted under “Web” I don’t think you can do that.

He didn’t say “from the browser” though, but yes, my solution is server only.

There is a full page of people asking that over SO and other sites :
https://duckduckgo.com/?q=javascript+get+computer+name&ia=qa