python3 logger.py
Manually type in the Default Gateway IP Address(Example : 172.16.12.1 for C Hostel. For other wifi networks type ipconfig in the cmd to find the gateway address) and port number(1000 -- it's the same for any wifi network in the campus) in the try catch block and run :
python3 logger.py
Install termux and run the python script.