Just for your info, the reason you were only getting hte first 3 digits of the IP by calling .toint() is because it was trying to extract an integer from a string that looks like
"127.127.127.127" and as soon as it hit the period, it stopped and returned the first "127".
Just a heads up to help ya since knowing stuff like that can help in the debugging process.
"127.127.127.127" and as soon as it hit the period, it stopped and returned the first "127".
Just a heads up to help ya since knowing stuff like that can help in the debugging process.