title: Cannot connect to VLC RTSP server
body: <p>I am using AWS EC2 CentOS based system. I also have a website is running on it at the domain mydomain.com</p>
  
  <p>I have installed VLC successfully for my server. I can do SSH and remote to my server (I can use GUI application with gnome)</p>
  
  <p>I start the vlc server with the below command:</p>
  
  <pre><code>vlc --ttl 34 -vvv --color -I telnet --telnet-password vlc --rtsp-host 0.0.0.0 --rtsp-port=554
  </code></pre>
  
  <p>and setup the stream on it by:</p>
  
  <pre><code>root@whm [~]#  telnet localhost 4212
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  VLC media player 2.0.8 Twoflower
  Password:
  Welcome, Master
  &gt; new sample01 vod enabled
  new
  &gt; setup sample01 input file:///home/myuser/public_html/mywebsite/folder/video.mp4
  setup
  </code></pre>
  
  <p>The output of the log is good.</p>
  
  <pre><code>[0x7f24a002c5b8] stream_out_rtp vod server debug: RTSP stream at /sample01
  [0x7f24a002c5b8] main vod server debug: net: listening to 0.0.0.0 port 554
  [0x7f24a002c5b8] stream_out_rtp vod server debug: RTSP: adding /sample01/trackID=0
  [0x7f24a002c5b8] stream_out_rtp vod server debug: RTSP: adding /sample01/trackID=1 
  
  
  [0x7fce4802d8c8] [Media: vod] main input debug: `file:///home/myuser/public_html/video.mp4' successfully opened 
  </code></pre>
  
  <p>If I stay on the server it self, using GUI, I can use the VLC player to open network stream URL:</p>
  
  <pre><code>rtsp://localhost:554/sample01 (it works)
  </code></pre>
  
  <p>If I use vlc player from another network to connect to the stream by the below URL
  <code>rtsp://mydomain.com:554/sample01</code> (this is the domain that is working for my website)</p>
  
  <p><code>rtsp://my-server-public-ip.com:554/sample01</code> (does not work too)</p>
  
  <p>I guess there is something wrong with the port, then I went to AWS console and added more port 554 and 4212 into Inbound list in the Security Group of my instance (like what I'd done for other ports), but it does not help.</p>
  
  <p>The error of the vlc client is:</p>
  
  <pre><code>[000000010050e4c8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
  [000000010022a7e8] [http] lua interface: Lua HTTP interface
  [0000000104a00978] live555 demux error: Failed to connect with rtsp://mydomain.com:554/sample01
  [00000001002b2dc8] core access error: connection failed: Connection refused
  [00000001002b2dc8] access_realrtsp access error: cannot connect to mydomain.com:554
  [0000000100618e58] core input error: open of `rtsp://mydomain.com:554/sample01' failed
  CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
  </code></pre>
  
  <p>Please help me on this to troubleshoot this problem.</p>