How to get the name of the computer accessing the application? I mean the computer the user use to access the application. Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
>>>>> "Lantis" == Lantis Sephiro <semutluthu@yahoo.com> writes:> How to get the name of the computer accessing the application? I mean > the computer the user use to access the application.Generally speaking you don''t, because there is no such thing as _the_ name of a computer. What are you really after? -- Calle Dybedahl <calle@cyberpomo.com> http://www.livejournal.com/users/cdybedahl/ "Facts are for people with weak opinions." -- Lars Willf?r, I]M
Calle Dybedahl wrote:>>>>>> "Lantis" == Lantis Sephiro <semutluthu@yahoo.com> writes: > >> How to get the name of the computer accessing the application? I mean >> the computer the user use to access the application. > > Generally speaking you don''t, because there is no such thing as _the_ > name of a computer. What are you really after? > -- > Calle Dybedahl <calle@cyberpomo.com> > http://www.livejournal.com/users/cdybedahl/ > "Facts are for people with weak opinions." -- Lars Willf?r, I]MI am developing some sort of web-based problem reporting system. If someone has a problem with a software, he will log on to the system and reports the problem. I want the system to get the computer name used to log the problem. In windows, right click my computer and click the computer name tab. The computer name i want to get is the full computer name; in my case is lantis-same. Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
I forgot to add that the system is going to be used in windows environment only. Lantis. -- Posted via http://www.ruby-forum.com/.
I don''t think you can do this. It might be possible by using some VBScript / ActiveX component. However, this would require the user to allow Active X components. On 4/10/06, Lantis Sephiro <semutluthu@yahoo.com> wrote:> > I forgot to add that the system is going to be used in windows > environment only. > > Lantis. > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/9e141348/attachment.html
Recording the ip address of the computer the request is coming from should be sufficient, provided they are fixed IP addresses. On Monday, April 10, 2006, at 4:50 PM, Harm de Laat wrote:>I don''t think you can do this. >It might be possible by using some VBScript / ActiveX component. However, >this would require the user to allow Active X components. > > >On 4/10/06, Lantis Sephiro <semutluthu@yahoo.com> wrote: >> >> I forgot to add that the system is going to be used in windows >> environment only. >> >> Lantis. >> >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_Kevin -- Posted with http://DevLists.com. Sign up and save your mailbox.
>>>>> "Lantis" == Lantis Sephiro <semutluthu@yahoo.com> writes:> If someone has a problem with a software, he will log on to the > system and reports the problem. I want the system to get the > computer name used to log the problem. In windows, right click my > computer and click the computer name tab.There is nothing in standard web communication that will give you that. You can either log the IP adress of the incoming connection (and its reverse DNS, if there is one), or you can start investigating Windows-specific solutions. -- Calle Dybedahl <calle@cyberpomo.com> http://www.livejournal.com/users/cdybedahl/ "Do any churches offer gluten-free body of christ? Just in case some of their flock have problems digesting their saviour?" -- Rob Blake, BofhNet
nbtstat -A <ip address> | grep <03> | cut -f1 -d" " if you are using windows and have grep and sed. There are windowy ways of greping and cuting too.>From inside RoR I have to assume there is some way to execute shellcommands. It''s not pretty, but your only choice in this case I think Alternatively, you could have a scheduled process run through all your sessions and look up computer names in the background and update a table in the database with them. This is perishable data due to DHCP and user hijinx. - Ian On 4/9/06, Lantis Sephiro <semutluthu@yahoo.com> wrote:> How to get the name of the computer accessing the application? I mean > the computer the user use to access the application. > > Thanks, > > Lantis. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >