[Klug-general] Indentifing Local machines on website

Mark Terry mark at thedumbterminal.co.uk
Mon Jun 1 21:31:58 UTC 2015


This should help:

http://stackoverflow.com/questions/3003145/how-to-get-the-client-ip-address-in-php

On 01/06/2015 21:39, Dan Attwood wrote:
> how can I get the IP of the device?
> Everything I've tried either gets the IP of the web server or the public
> IP of the whole site
>
>
> On 1 June 2015 at 21:36, Karl Buckland <buckland.karl at gmail.com
> <mailto:buckland.karl at gmail.com>> wrote:
>
>     Nothing is going to be full proof. Can you not get your site to set
>     a cookie on each terminal and use that for I'd?  Or could you use
>     the IPs of each device?
>
>     Karl
>
>     On 1 Jun 2015 9:30 pm, "Dan Attwood" <danattwood at gmail.com
>     <mailto:danattwood at gmail.com>> wrote:
>
>         I've got 3 student information terminals. They are in one pcs
>         that have card scanner attached to them and run windows.
>         They run chrome which has a website. When a student scans their
>         card some jquery passes of to php via ajax shows them their
>         print, timetables etc.
>         What i'd like to be able to is to log which terminals have been
>         scanned though.
>
>         I've tried to do this by calling a local file on each terminal
>         but chrome blocks calling files from the c:\ drive.
>         I could use a different url for each terminal,
>         '?terminal=number1' etc, but this would policies to ensure each
>         terminal called the right url and also the page has a refresh
>         built in and I'm concerned that this might cause an issue.
>
>         Can anyone think of better for this?
>
>
>
>
>         _______________________________________________
>         Kent mailing list
>         Kent at mailman.lug.org.uk <mailto:Kent at mailman.lug.org.uk>
>         https://mailman.lug.org.uk/mailman/listinfo/kent
>
>
>     _______________________________________________
>     Kent mailing list
>     Kent at mailman.lug.org.uk <mailto:Kent at mailman.lug.org.uk>
>     https://mailman.lug.org.uk/mailman/listinfo/kent
>
>
>
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>


-- 
--------------------------------
http://www.thedumbterminal.co.uk



More information about the Kent mailing list