Need Help - No IP Cams working



  • Hey folks,

    So I’ve spent a lot of time trying to get this working with no success.

    My setup is:

    Cameras
    Mibao P450 - Supports Onvif
    Sricam (Not sure the model)
    Synology NAS - Exposing the Mibao via Surveillance Station for test purposes.

    PC
    Win 10 Lenovo

    Amazon Device
    Fire Stick 4K
    Kindle Fire 2017

    So I had an issue with DNS Binding but I changed the DNS for the PC and not it is resolving to the FQDN generated by the Monocle Gateway.

    Prerequisites
    I have Microsoft Visual C++ 2010 SP1 Redistribution Package installed. My PC is x64 and I ensure I am running the correct version.

    Port 443
    I have confirmed that is listening to the gateway using the netstat -a -b command, see below.

    Active Connections
    
      Proto  Local Address          Foreign Address        State
      TCP    0.0.0.0:135            DESKTOP-MKHU3C1:0      LISTENING
      RpcSs
     [svchost.exe]
      TCP    0.0.0.0:443            DESKTOP-MKHU3C1:0      LISTENING
     [monocle-gateway.exe]
      TCP    0.0.0.0:445            DESKTOP-MKHU3C1:0      LISTENING
    

    I don’t know if it matters that the IP is not that of the PC.

    Gateway Initialised
    There are no issues when the gateway initialises.

    
     ******************************************************************
     *             __  __  ___  _  _  ___   ___ _    ___              *
     *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
     *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
     *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
     *                                                                *
     ******************************************************************
    
    
    -------------------------------------------------
    MONOCLE RUNTIME ENVIRONMENT
    -------------------------------------------------
    VERSION   = 0.0.4
    OS/ARCH   = win32\x64
    PROCESS   = monocle-gateway (PID=9748)
    TIMESTAMP = 2021-12-22T17:46:15.748Z
    
    -------------------------------------------------
    MONOCLE GATEWAY SERVICE         (Version: 0.0.4)
    -------------------------------------------------
    [Monocle Starting]
    [Monocle Connecting]
    [Monocle Started]
    [RTSP Server Starting]
    [RTSP Server Listening] 0.0.0.0:8555 (RTSP)
    [RTSP Server Listening] 0.0.0.0:443 (RTSP-TLS)
    [RTSP Proxy Started] (PID=11372)
    [RTSP Server Listening] 0.0.0.0:8554 (PROXY)
    [RTSP Server Started]
    [RTSP Proxy Stopped] CODE=3221225781; SIGNAL=null
    [Monocle Connected]
    [RTSP Server Registered]
    
    -------------------------------------------------
    MONOCLE RTSP SERVICE - INITIALIZED
    -------------------------------------------------
    FQDN = 49e4c20f-3e83-4503-99d9-81c744bfcc24.mproxy.io
    HOST = 192.168.0.95
    PORT = 443
    

    Camera Setup on Monocle
    My camera setup shown below works fine in VLC and Synology Surveillance Station.
    Screenshot 2021-12-22 at 18.42.49.png

    Tags
    I’ve also tried all the variations of the tags I can think of but no luck.

    Authentication
    Tried both types of authentication as well. I tried without authentication on Sricam as well which I can test in VLC and this doesn’t work either.

    Log with @Tunnel Tag
    Below is the log when I am using the @proxy tag as it provides most feedback. The @tunnel tag tends not show much.

    -------------------------------------------------
    INITIALIZE RTSP STREAM:  Backyard
    -------------------------------------------------
     - NAME  : Backyard
     - LABEL : PRIMARY
     - URL   : rtsp://192.168.0.150:554/
     - UUID  : STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082
     - SESS  : 46facc61-7bc1-4000-a7ea-07347e9a9fa9
     - MODIF : Wed Dec 22 2021 17:36:19 GMT+0000 (GMT Standard Time)
     - TAGS  : @tunnel
    -------------------------------------------------
    
    2021-12-22T17:46:46.933Z [INFO]  [192.168.0.157:34470 <SJycN1-st>] RTSP CLIENT SOCKET CONNECTED
    2021-12-22T17:46:47.063Z [INFO]  [192.168.0.157:34470 <SJycN1-st>] RTSP CLIENT ATTACHED TO STREAM: Backyard (STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082)
    2021-12-22T17:46:47.078Z [INFO]  [192.168.0.157:34470 <SJycN1-st>] RTSP ENDPOINT SOCKET CONNECTED {192.168.0.150:554}
    2021-12-22T17:46:47.079Z [DEBUG] [192.168.0.157:34470 <SJycN1-st>] [CLIENT REQUEST]  --> [DESCRIBE] rtsp://49e4c20f-3e83-4503-99d9-81c744bfcc24.mproxy.io:443/STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082?session=46facc61-7bc1-4000-a7ea-07347e9a9fa9
    2021-12-22T17:46:47.079Z [TRACE] [192.168.0.157:34470 <SJycN1-st>] [CLIENT REQUEST]  --> [HEADERS] {
      "accept": "application/sdp",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "1"
    }
    2021-12-22T17:46:47.080Z [DEBUG] [192.168.0.157:34470 <SJycN1-st>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://192.168.0.150:554/
    2021-12-22T17:46:47.081Z [TRACE] [192.168.0.157:34470 <SJycN1-st>] [ENDPOINT REQUEST]  --> [HEADERS] {
      "accept": "application/sdp",
      "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
      "cseq": "1"
    }
    2021-12-22T17:46:47.095Z [DEBUG] [192.168.0.157:34470 <SJycN1-st>] [ENDPOINT RESPONSE] <-- [401 (Unauthorized)] <cseq=1> (session=undefined)
    2021-12-22T17:46:47.096Z [TRACE] [192.168.0.157:34470 <SJycN1-st>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      "content-length": "0",
      "server": "H264DVR 1.0",
      "cseq": "1",
      "www-authenticate": "Basic realm=\"PuWellRtsp\""
    }
    2021-12-22T17:47:17.076Z [WARN]  [192.168.0.157:34470 <SJycN1-st>] RTSP CLIENT SOCKET TIMEOUT
    2021-12-22T17:47:18.420Z [WARN]  [192.168.0.157:34470 <SJycN1-st>] RTSP ENDPOINT SOCKET TIMEOUT [192.168.0.157:34470 <SJycN1-st>]
    2021-12-22T17:47:18.420Z [INFO]  [192.168.0.157:34470 <SJycN1-st>] RTSP ENDPOINT SOCKET CLOSED [192.168.0.157:34470 <SJycN1-st>]
    2021-12-22T17:47:18.529Z [INFO]  [192.168.0.157:34470 <SJycN1-st>] RTSP CLIENT SOCKET CLOSED
    2021-12-22T17:47:18.545Z [INFO]  [192.168.0.157:34470 <SJycN1-st>] RTSP CLIENT DETACHED FROM STREAM: Backyard (STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082)
    

    Log with @Proxy Tag

    -------------------------------------------------
    INITIALIZE RTSP STREAM:  Backyard
    -------------------------------------------------
     - NAME  : Backyard
     - LABEL : PRIMARY
     - URL   : rtsp://192.168.0.150:554/
     - UUID  : STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082
     - SESS  : cc79bcdc-9c7b-4e25-ae3d-3d1616808af7
     - MODIF : Wed Dec 22 2021 18:20:03 GMT+0000 (GMT Standard Time)
     - TAGS  : @noaudio,@proxy
    -------------------------------------------------
    
    2021-12-22T18:20:16.295Z [INFO]  [RTSP PROXY] REGISTERING STREAM [Backyard/PRIMARY]; (STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082)
    2021-12-22T18:20:16.733Z [INFO]  [192.168.0.157:34758 <H1KDh1-jF>] RTSP CLIENT SOCKET CONNECTED
    2021-12-22T18:20:16.764Z [ERROR] Uncaught Exception connect ECONNREFUSED 127.0.0.1:8554
    [ 'Uncaught Exception', 'connect ECONNREFUSED 127.0.0.1:8554' ]
    2021-12-22T18:20:16.764Z [ERROR] Error: connect ECONNREFUSED 127.0.0.1:8554
    [ { Error: connect ECONNREFUSED 127.0.0.1:8554
        at Object._errnoException (util.js:1031:13)
        at _exceptionWithHostPort (util.js:1052:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
        errno: 'ECONNREFUSED',
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '127.0.0.1',
        port: 8554 } ]
    2021-12-22T18:20:16.858Z [INFO]  [192.168.0.157:34758 <H1KDh1-jF>] RTSP CLIENT ATTACHED TO STREAM: Backyard (STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082)
    2021-12-22T18:20:18.358Z [ERROR] Uncaught Exception connect ECONNREFUSED 127.0.0.1:8554
    [ 'Uncaught Exception', 'connect ECONNREFUSED 127.0.0.1:8554' ]
    2021-12-22T18:20:18.358Z [ERROR] Error: connect ECONNREFUSED 127.0.0.1:8554
    [ { Error: connect ECONNREFUSED 127.0.0.1:8554
        at Object._errnoException (util.js:1031:13)
        at _exceptionWithHostPort (util.js:1052:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
        errno: 'ECONNREFUSED',
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '127.0.0.1',
        port: 8554 } ]
    2021-12-22T18:20:18.889Z [ERROR] [192.168.0.157:34758 <H1KDh1-jF>] [RTSP ENDPOINT SOCKET ERROR] [192.168.0.157:34758 <H1KDh1-jF>] Error: connect ECONNREFUSED 127.0.0.1:8554
    [ '[192.168.0.157:34758 <H1KDh1-jF>]',
      '[RTSP ENDPOINT SOCKET ERROR]',
      '[192.168.0.157:34758 <H1KDh1-jF>]',
      { Error: connect ECONNREFUSED 127.0.0.1:8554
        at Object._errnoException (util.js:1031:13)
        at _exceptionWithHostPort (util.js:1052:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
        errno: 'ECONNREFUSED',
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '127.0.0.1',
        port: 8554 } ]
    2021-12-22T18:20:18.889Z [ERROR] PROXY ENDPOINT ERROR; Error: connect ECONNREFUSED 127.0.0.1:8554
    [ 'PROXY ENDPOINT ERROR;',
      { Error: connect ECONNREFUSED 127.0.0.1:8554
        at Object._errnoException (util.js:1031:13)
        at _exceptionWithHostPort (util.js:1052:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
        errno: 'ECONNREFUSED',
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '127.0.0.1',
        port: 8554 } ]
    2021-12-22T18:20:18.889Z [INFO]  [192.168.0.157:34758 <H1KDh1-jF>] RTSP ENDPOINT SOCKET CLOSED [192.168.0.157:34758 <H1KDh1-jF>]
    2021-12-22T18:20:46.867Z [WARN]  [192.168.0.157:34758 <H1KDh1-jF>] RTSP CLIENT SOCKET TIMEOUT
    2021-12-22T18:20:46.867Z [INFO]  [192.168.0.157:34758 <H1KDh1-jF>] RTSP CLIENT SOCKET CLOSED
    2021-12-22T18:20:46.867Z [INFO]  [192.168.0.157:34758 <H1KDh1-jF>] RTSP CLIENT DETACHED FROM STREAM: Backyard (STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082)
    

    Any help on this would be great, I’m not sure what to do and would really like top get this working.


Log in to reply