Currently i can send commands using TCP to bulb which is connected to same router with my pc.(both are in same network/Wifi)
How do i send commands to bulb from outside network ?
I guess i need to do port forwarding but i dont have previous experience with this.Can anyone guide me ?
The API we provider is only worked on local network, and there’s no API with internet control.
In you case, I think if you can manager to access to your local network you will also control the device.
Yes, the only way to work is through VPN to your LAN…
AFAIK, that’s partially true.
VPN is good solution if you’re physically outside your lan area.
if @lastpeony external network is simply another router connected to the one with the yeelights, then there are other solutions like NAT or editing the routing table on the external router.
nontheless, solutions like this should be able to allow sending out commands, but in order to get response back from the yeelight, changing the NAT / routing table on the yeelight’s router might also be necessary.
@lastpeony - you questions is more about how to forward TCP packets between two different networks ( w/ or w/o VPN ) - then about Yeelight itself.
as told above, Yeelight only communicate with other device on SAME network.
so it’s just about passing that TCP packet from one network to the other and it doesn’t really matter the fact that it is for yeelight - i.e it’s network communication puzzle.
also IMHO, your life will be much easy if you’d set static IP to the yeelight devices in the router they communicate with.
Ah, yes you’re right, I just saw “from outside network” and assumed it is from internet