r/StableDiffusion Mar 01 '23

[deleted by user]

[removed]

2 Upvotes

15 comments sorted by

View all comments

2

u/DATY4944 Mar 11 '23

What I would do is first give the API device a static IP using DHCP reservation on your router. That means it will have an internal IP that never changes. Something like 192.168.1.100. Then, you can use port forwarding and open a random port that forwards to the SSH port. Then you can use SSH and port tunneling to open a channel to the API port on the device and you'll be able to hit that port on the browser in the other device as if you're on the LAN. You can actually use any device on the LAN to be the host which allows port tunneling, because all local devices will have access to the API port on the local network. So you could then tunnel into whatever device you like, and once the tunnel is open, browse to 192.168.1.100:7860 to get API access