# Counting number of guests online

**URL:** <https://www.ruby-forum.com/t/counting-number-of-guests-online/160681>\
**Category:** Rails\
**Created:** [February 18, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/counting-number-of-guests-online/160681 "2009-02-18T19:35:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [February 18, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/counting-number-of-guests-online/160681/1 "2009-02-18T19:35:31Z")

</div>

I’m currently using eldorado forum which shows the users that are  
currently logged on. I wanted to also add the number of guests that are  
currently viewing the site.

What do you think is the best way to go about this and where should I  
keep track of this number?

I’m thinking I would have to keep track of the ip addresses that are  
currently connected but then would i just subtract the number of logged  
in users from this to get the number of guests?

Can someone point me in the right direction? Thanks!

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [July 25, 2010, 1:30am UTC](https://www.ruby-forum.com/t/counting-number-of-guests-online/160681/2 "2010-07-25T01:30:48Z")

</div>

I too am looking for a way to count the number of guests visiting.
