Skip to content

Commit

Permalink
feat(config): [closes #112] use 188.148.133.173 for TURN server
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Jul 25, 2023
1 parent 67dcf2a commit 7a4862f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/config/rtcConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ export const rtcConfig: RTCConfiguration = {
// CONNECTED TO THE INTERNET.
iceServers: [
{
urls: 'stun:openrelay.metered.ca:80',
urls: 'stun:188.148.133.173:3478',
},
{
urls: 'turn:openrelay.metered.ca:80',
username: 'openrelayproject',
credential: 'openrelayproject',
urls: 'turn:188.148.133.173:3478',
username: 'c386d75b5633456cb3bc13812858098d',
credential: '58fd06d85fe14c0f9f46220748b0f565',
},
{
urls: 'turn:openrelay.metered.ca:443',
username: 'openrelayproject',
credential: 'openrelayproject',
urls: 'turn:188.148.133.173:3478',
username: '0e2f563eacfd4c4a82ea239b04d1d494',
credential: '8179b4b533f240ad9fe590663bef1bc9',
},
{
urls: 'turn:openrelay.metered.ca:443?transport=tcp',
username: 'openrelayproject',
credential: 'openrelayproject',
urls: 'turn:188.148.133.173:3478',
username: 'feab95c3fcd147a2a96a3d3590bf9cda',
credential: '654cafd885424b7fb974e65f631f25f9',
},
],
}

13 comments on commit 7a4862f

@jeremyckahn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Git history attributes this commit to me, but it was authored by @sini6a in #132.

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeremy. I used the above src/config/rtcConfig.ts on my yunohost version of ChitChatter. It is behind a NAT and the turn server is not resolving. Any ideas?

@jeremyckahn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeremy. I used the above src/config/rtcConfig.ts on my yunohost version of ChitChatter. It is behind a NAT and the turn server is not resolving. Any ideas?

@ralphshinevar Are you able to access http://188.148.133.173/? If that resolves then you should be able to connect to the TURN server. Beyond that I don't have any ideas on how to troubleshoot, unfortunately.

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hold on. I did not have port 3478 open on my router. Now I do.

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I can hit http:/188.148.133.173

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying with my phone. I can get into the room and can see me in the room from the desktop, but from the phone (Android) I see just arrows.

@jeremyckahn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ralphshinevar do you mean arrows in the sidebar like this? If so, that means you are connected via the TURN server.

Screenshot 2023-09-26 at 3 26 25 PM

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No just big arrows. Can you try to access my room?

https://video2.shinevar.nohost.me/public/78539d1e-2055-428d-bd55-56e790982b92

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not seeing Full network connection.

@jeremyckahn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ralphshinevar It appears that you are on quite an old version of Chitchatter. Specifically, you are using the build that was published on 3/8/2023: 442f540.

This old version had issues connecting when ad blocker browser extensions were enabled. I'd recommend disabling any browser extensions and trying again to see if that's the issue. Additionally, I'd recommend using the latest version of Chitchatter. Because you are using Yunohost's fork, I'd recommend opening an issue at https://github.com/YunoHost-Apps/chitchatter_ynh and asking them to update their Chitchatter version.

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jeremy. I will poke Yunohost and check browser extensions.

@ralphshinevar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it to work in Chrome. The phone was using Duck Duck Go.

@jeremyckahn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it to work in Chrome. The phone was using Duck Duck Go.

That makes sense. It appears that DDG's support for WebRTC is questionable. WebRTC is required for Chitchatter to function, so if that's not working then the app won't either.

Please sign in to comment.