I am creating a small chat that will work in a local network, I explain the situation:
where I study there are 3 rooms with computers and pages like facebook, twitter and other social networks are blocked, so I thought it would be a good idea to create a chat for the rest of the students (to earn some money), for this I thought about put servers on 2 or 3 computers (if any is off), I'm too lazy to go to%% and edit ipconfig
(127.0.0.1 is just to put an ip) in each of the computers, in addition to fiddling a bit I realized that the router restarted (because when I put sock.bind(("127.0.0.1", 5000))
for some reason or another on the same computer on a different day I realize that the ip changes), so I was wondering if there is any function of a library or something that returns the private ip of the machine that is being used?