<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have compiled libnice on Windows but I cannot get *any* example to work.</div><div style="font-size:12.8px">I have tried to debug it, and I found out that one issue is that nice_interfaces_get_local_ips() returns nothing on Windows.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Here is a sample program : it should display some candidates but gets no candidates (and no local addresses for that matter).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>int main() {</div><div><span style="white-space:pre-wrap">       </span>context = g_main_context_new ();</div><div><span style="white-space:pre-wrap"> </span>loop = g_main_loop_new ( context , FALSE );</div><div><span style="white-space:pre-wrap">      </span>NiceAgent *agent = nice_agent_new ( context , NICE_COMPATIBILITY_RFC5245 );</div><div><br></div><div><span style="white-space:pre-wrap">     </span>g_signal_connect (G_OBJECT (agent), "candidate-gathering-done", G_CALLBACK (candidate_gathering_done_cb), NULL);<br></div><div><span style="white-space:pre-wrap">     </span>g_signal_connect (G_OBJECT (agent), "component-state-changed", G_CALLBACK (component_state_changed_cb), NULL);</div><div><span style="white-space:pre-wrap"> </span>g_signal_connect (G_OBJECT (agent), "new-candidate-full", G_CALLBACK (new_candidate_full_cb), NULL);</div><div><br></div><div><span style="white-space:pre-wrap">  </span>guint stream_id = nice_agent_add_stream ( agent , 1);</div><div><span style="white-space:pre-wrap">    </span>nice_agent_attach_recv ( agent , stream_id , 1 , context , cb_nice_recv , NULL );<br></div><div><span style="white-space:pre-wrap">      </span>nice_agent_gather_candidates ( agent , stream_id );</div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">     </span>g_main_loop_run ( loop );<br></div><div>}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is it a Windows-specific issue?</div><div style="font-size:12.8px">Do I have to stop dreaming about running libnice on Windows? ;)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you for your help!</div><div style="font-size:12.8px">Adrien</div>
</div>