added ip logging, made url config variable (hope that works)