go-ssb-room icon indicating copy to clipboard operation
go-ssb-room copied to clipboard

how to change a room port?

Open ahdinosaur opened this issue 3 years ago • 2 comments

hi, i'm keen to bring my room server https://butt.nz home, but when i do that i want to use a different port for the ssb connections (what is usually port 8008), since i'm limited to 1 ip address (when usually in the cloud each server has their own ip address).

i know how to do this from the server's perspective, but how would peers find the new server port?

i know for a pub, you can publish new pub announcement messages, but how does this work for rooms? do i need to send everyone a new invite so they store the new room address? would that even work?

cheers! :peach:

ahdinosaur avatar Jan 10 '22 23:01 ahdinosaur

hmm, what if i private message all the members and tell them to redeem this new "invite":

net:butt.nz:8008~shs:S27Knie0xR53wW06B9XTJ0Vbc/pgSWp4ws39n7zViCU=:SSB+Room+PSK3TLYC2T86EHQCUHBUHASCASE18JBV24= 

where that invite has the new port. would that work?

ahdinosaur avatar Jan 10 '22 23:01 ahdinosaur

I think there is an http endpoint that gives you the multiserver address, which includes the port of course. I'm on mobile now so I can't confirm this 100% but I believe the endpoint is there. If it's not, we should add it.

The room shouldn't send private messages because it has no feed, no replication algorithms (upload or download), etc.

staltz avatar Jan 11 '22 08:01 staltz