How to create my own STUN or TURN server using java

Viewed 5789

I have been working on a video chat application using WebRTC and using Java Websocket as a Signalling server.

This application is working successfully on Tomcat.

Currently I am using​ Google's STUN server.

var pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}]}; var pc = new RTCPeerConnection(pc_config);

I don't want to relay on a public or 3rd party STUN server, like above.

Since my application will be published to public Tomcat server with dedicated domain. I want use/setup my own STUN or TURN server.

Can I do that with Tomcat?
Are there any stable open-source libraries available for this?

Please point me to an example if any such.

2 Answers
Related