0

I am on python project where I want track IP address of machine and if the ip address is match with the IP address in mysql database only then allowed to proceed when I login to my hosted website. The number of IP address in database are also limited.

So if there any code please help me with it. Thanks in advance.

Kedar17
  • 178
  • 2
  • 14
  • How does anyone "access" your "Python project"? Are you using some web framework…? If so, it likely has some sort of `request` object from which you can get the IP. – deceze Jan 08 '20 at 07:51
  • Can you guide me how to deal with this "request" object?? I am stuck at this, not able to proceed further? – Kedar17 Jan 08 '20 at 07:56
  • Don't ignore the first part of my comment. *We* need more information here to help *you*. – deceze Jan 08 '20 at 07:58
  • Yes, I am using flask web framework, basically its info I can't share about how any body will access my project. I just can share that the website should be able to match Machine IP address with IP address in the mysql database. – Kedar17 Jan 08 '20 at 08:04
  • Well then: https://stackoverflow.com/a/3760309/476 – deceze Jan 08 '20 at 08:05
  • Is it possible to get mac address for same project? – Kedar17 Jan 09 '20 at 11:03

0 Answers0