Using a port other than 9999? #410
Replies: 5 comments 6 replies
-
I don't think what you want to achieve is a good idea. Actually it's a very bad idea. This means anyone on the big bad internet will have access to your home appliances/lights. |
Beta Was this translation helpful? Give feedback.
-
Yes, anyone persistent already has the ability to turn my one switch (passed through on 9999) on and off. Actually, being able to use a port number other than 9999 might be slightly more secure as an attacker who knew about 9999 might not try Kasa protocols on other ports. In any case, my use case isn't critically impacted by the switch being changed and anyone who would be critically impacted probably wouldn't do a pass through in any case. |
Beta Was this translation helpful? Give feedback.
-
Can't you solve the issue installing a VPN? I can recommend WireGuard because if its outstanding on-demand functionality, and being lightweight both on devices' CPU and bandwidth. |
Beta Was this translation helpful? Give feedback.
-
python-kasa is shockingly overcomplicated and an absolute mess to work with, but it would be trivial to add it to pyHS100 which python-kasa is an asynced fork of. you'd just have to alter the init of smartbulb and smartdevice to take and store your port, then a slight alteration to the query method in the main class of protocol.py so that uses your port if async is a requirement, you can just run pyHS inside async functions anyway. I genuinely have no idea why anyone bothers with python-kasa. it's such a buggy, messy waste of time. but then it comes top when you google python for tp-link/kasa, so not a huge surprise |
Beta Was this translation helpful? Give feedback.
-
This is now possible using the |
Beta Was this translation helpful? Give feedback.
-
I'm wondering how hard it would be to add a port number argument. I don't think it's available now ... but I might have missed it.
Anyway, I'm trying to control switches remotely and I'd like to be able to port-forward to several different switches. At this time, I can only do the one port-forward for 9999.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions