houshmand-2005 / V2IpLimit

Limiting the number of active users with IP
MIT License
126 stars 39 forks source link

Running This on Windows #19

Closed iamtheted closed 1 year ago

iamtheted commented 1 year ago

Hi

I was wondering how I can run this on my windows locally instead of linux. Can you please guide me through It if It's possible?

I really appreciate It.

houshmand-2005 commented 1 year ago

Hi at first you need to install python in your windows Download Python 3.11.5 for Windows 64-bit then when you install python you can run script by this command in your cmd python v2_ip_limit.py steps are the almost the same just if your domain or IP is filter you should also use VPN

iamtheted commented 1 year ago

Here's the error that pops up:

Traceback (most recent call last): File "E:\V2IpLimit-houshmand\V2IpLimit-houshmand\Marzban\v2_ip_limit.py", line 11, in import websockets ModuleNotFoundError: No module named 'websockets'

And I fixed It by "pip install websockets" Just leaving this comment here, in case anyone else face this error.

Thanks a lot Houshmand 💙

iamtheted commented 1 year ago

Hi,

But there's no cronjob or screen command on Windows, right? I can only run It once and that's It, am I right?

houshmand-2005 commented 1 year ago

yeah but there are probably alternatives, I'm not very familiar with Windows sorry