Can't test code Sample video broadcaster

I have gencode Sample video broadcaster,but when i run on my device,its always return rejected code as below
<IMediaStreamerDelegate> streamStateChanged: 0 = NetConnection.Connect.Rejected
What’s need config to test with sample?