title: Libstreaming - use VLC as a RTSP client
body: <p>I'm trying to use VLC as a RTSP client. The RTSP server is based on the <code>libstreaming</code> library. I'm using the code provided by the <a href="https://github.com/fyhertz/libstreaming-examples/blob/master/example1/src/net/majorkernelpanic/example1/MainActivity.java" rel="nofollow">1rst example</a>:</p>
  
  <pre><code>        // Sets the port of the RTSP server to 1234
          Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();
          editor.putString(RtspServer.KEY_PORT, String.valueOf(1234));
          editor.commit();
  
          // Configures the SessionBuilder
          SessionBuilder.getInstance()
          .setSurfaceView(mSurfaceView)
          .setPreviewOrientation(90)
          .setContext(getApplicationContext())
          .setAudioEncoder(SessionBuilder.AUDIO_NONE)
          .setVideoEncoder(SessionBuilder.VIDEO_H264);
  
          // Starts the RTSP server
          this.startService(new Intent(this,RtspServer.class));
  </code></pre>
  
  <p>The android app starts; I try to access the stream using VLC (<code>open a stream</code>) and this URL: </p>
  
  <pre><code>rtsp://192.168.43.250:1234
  </code></pre>
  
  <p>The device is connected to the same network (I can ping it), but nothing happens in the android App and VLC displays a "connection failed" window.</p>
  
  <p>Any idea where the problem is? Maybe a bad URL, but I can't found any detailled example of this situation.</p>