IP Fixes

Fixed ip bug in query and fixed displaying it in student times page.