Tv server (by rtsp) (1 Viewer)

tvviewer

Portal Member
March 29, 2005
26
0
Hi,
I am a mediaportal newbie. Mediaportal is very cool.
My system is winxp, cinergy c hd cabletvcard and i have installed mediaportal already. It found mostly all tv channels.
I have become very interested in streaming live tv through my router to other computers not in my local area network.

I test the tv server with vlc player and i can connect via rtsp://192.168.1.2:554/stream4.0 which is good for local area network.
But which ports must be NAT forwarded in the router in order to access the tv server globally when it runs on the local machine ip 192.168.1.2:554? And what is the correct adress to connect to?

thanks for help.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi tvviewer

    First, remember that the stream must already exist in order for VLC to connect to it. VLC is not able to start a stream.

    But which ports must be NAT forwarded in the router in order to access the tv server globally when it runs on the local machine ip 192.168.1.2:554?
    Ports:
    - 31456 for TV Server (if connecting with an MP client)
    - 3306 for MySQL DB or 1433 for SQL Server
    - 554 for RTSP streaming
    - 49152–65535 (all dynamic ports) for streaming data (RTSP uses random ports in this range for the streamed content)

    And what is the correct adress to connect to?
    From outside the router you have to use the router's external IP address. This is the address assigned by your ISP.

    mm
     

    tvviewer

    Portal Member
    March 29, 2005
    26
    0
    That was a big list of ports required for rtsp :) I have not tried opening all of these ports in my router yet but i probably will if there are no alternatives.
    Is there an easier approach ?
    What alternatives is there to rtsp?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi again

    Usually routers can handle ranges. In any case, I think I may have slightly mislead you through not reading your post carefully enough. The dynamic ports are one direction only (TV Server -> client) so they shouldn't need to be forwarded. Sorry about that. The other 3 ports are still needed. :sorry:

    mm
     

    tvviewer

    Portal Member
    March 29, 2005
    26
    0
    No problem mate :)
    I tried this a moment ago:
    The 3 ports are forwarded in the router and set 'ip nat loopback to on'. I start timeshifting in the server module.
    In VLC, i enter rtsp://local-adr:554/stream4.0 which succeeded.

    In VLC, i then enter rtsp://global-adr:554/stream4.0 which fails.
    VLC says only "VLC could not connect"

    What could the problem be?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi again

    You can't use the global address inside the network - it is only accessible from outside the network (the router has internal and external IP addresses). I've never used NAT and I'm not 100% confident about what it means but I think it is for translating IP address ranges across domains. It may not be what you need. When I need access to a computer inside my home network from outside that network I set up port forwarding (sometimes called virtual servers) in the router. This allows me to make the router pass packets that are addressed to certain ports to a PC inside the network (you select the PC by IP address). Other ports are still blocked. Is that what you're trying to do?

    mm
     

    tvviewer

    Portal Member
    March 29, 2005
    26
    0
    Yes, exactly. Ok, the global access will fail from the intern pc inside the network?

    I've forwarded the 3 ports listed, to the intern pc by 'NAT port forwarding' in the router interface. The 'IP NAT loopback on' command, i mentioned, is just a way to tell the router to allow the traffic to come from the intern pc since i test the 'global access to the server' from the intern pc on which the tv server is installed.
     

    tvviewer

    Portal Member
    March 29, 2005
    26
    0
    Give us a clue; which router..?
    Make and model please

    Model Number: Zyxel P-2602HW-D1A
    ZyNOS Firmware Version: V3.40(AOM.4) | 03/09/2009
    DSL Firmware Version: TI AR7 06.00.04.00

    Old firmware i admit :)

    Mediaportal 1.2.1.0

    I have to have a good look at my router. It wont even allow my ftp server to be accessed from the global network today :(
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Ok, the global access will fail from the intern pc inside the network?
    Yes, you can't use the router's external IP address to connect to it from inside the network. I'm pretty sure it also would not forward packets received from an internal PC to your TV Server...
     

    Users who are viewing this thread

    Top Bottom