FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Define the port by self? · Issue #108 · python-kasa/python-kasa · GitHub

Repository navigation

Define the port by self? #108

Closed
Closed

Description

May I change the port setting in future version for VPN or Port Mapping application?

Activity

  1. kirichkov commented on Oct 26, 2020

    Contributor

    If I understand your question correctly, and you are referring to port 9999, then no - you cannot, this is defined by TP-Link in their firmware.

  2. yutangshen commented on Oct 27, 2020

    Author

    I know the port 9999 was defined by TP-Link, but I want using router's port mapping function to control the device from Internet. Now I am using MQTT to make this application, but i need a station (maybe a raspberry pi) in the LAN. So I want to control HS105 directly form internet when many HS105 in LAN ...

    I am also using tcp/udp client function sending the control command to control the HS105 directly.

    I just want python-kasa can offer the function to change the port ...

  3. kirichkov commented on Oct 29, 2020

    Contributor

    Do you use python-kasa as a command-line binary or as a module - i.e. you have written your own python program?

  4. yutangshen commented on Oct 30, 2020

    Author

    Do you use python-kasa as a command-line binary or as a module - i.e. you have written your own python program?

    Thanks for commect

    Now, I am using encode function encode command to control my device directly by tcp/udp ...

  5. kirichkov commented on Oct 30, 2020

    Contributor

    Let me look into it

  6. kirichkov commented on Oct 31, 2020

    Contributor

    In #109 I've exposed setting a port in TPLinkSmartHomeProtocol.query. My understanding is that that's what you're using to control your devices.

    Just a word of caution - exposing your devices to the Internet can lead to disastrous results.

  7. yutangshen commented on Oct 31, 2020

    Author

    In #109 I've exposed setting a port in TPLinkSmartHomeProtocol.query. My understanding is that that's what you're using to control your devices.

    Just a word of caution - exposing your devices to the Internet can lead to disastrous results.

    Thanks for the caution, and i will try TPLinkSmartHomeProtocol.query function ..

    My device was exposing in VPN environment, so that is relatively safe ...

  8. kirichkov commented on Oct 31, 2020

    Contributor

    Thanks for the caution, and i will try TPLinkSmartHomeProtocol.query function ..

    Indeed if you can test it before it gets merged, it'd be great.

  9. rytilahti commented on Sep 27, 2021

    Member

    The target port can be changed by monkeypatching DEFAULT_PORT in the Protocol class: https://github.com/python-kasa/python-kasa/blob/master/kasa/protocol.py#L29 - I don't think it makes sense to make that configurable after all, so I'll close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL