ionorg / ion-sfu

Pure Go WebRTC SFU
MIT License
980 stars 238 forks source link

Can't get it to work deployed to my VPS #689

Closed ablaszkiewicz closed 8 months ago

ablaszkiewicz commented 8 months ago

Summary

I successfuly ran echotest-jsonrpc in a local environment so now I wanted to try to connect this to my actual server.

I deployed ion-sfu to my VPS using the command provided in the readme. I changed localhost in index.html to my server IP address. It seems that something works because I see successful WS connection but I can't see the video.

image

I tried to look for differences in local setup logs vs VPS setup logs. I noticed that in local environment ion logs these 2 lines when I press "Start":

2024-02-21 20:34:52 [2024-02-21 19:34:52.600] [INFO] [session.go:226] => Publishing track to peer peer_id=clsw71c15000901qstefrqqvi v=0
2024-02-21 20:34:52 [2024-02-21 19:34:52.876] [INFO] [session.go:226] => Publishing track to peer peer_id=clsw71c15000901qstefrqqvi v=0

In container logs on my VPS I can still see PerrLocal trickle, Send offer, PerrLocal got answer, etc... but these 2 particular lines are missing.

Am I missing something?

ablaszkiewicz commented 8 months ago

Setting nat1to1 to server IP in config.timl resolved the issue