apprtc и webrtc сервер не могут быть доступны удаленно? - PullRequest
0 голосов
/ 06 мая 2018

У меня проблемы с настройкой сервера apprtc, потому что я не могу получить к нему удаленный доступ. Вот что я сделал и что сейчас происходит.

Я клонировал этот проект на сервер Ubuntu 16.06.

https://github.com/webrtc/apprtc

Я следовал инструкциям по установке.

В тот момент, когда я набираю в своем браузере на компьютере с Windows любой из этих URL, http://192.168.0.110:8000, http://192.168.0.110:8080, http://localhost:8000, http://localhost:8080 , http://localhost:8089, я получаю сообщение об ошибке типа This site can not be reached, connection refused или что-то в этом роде.

Однако, если я открою SSH-терминал и наберу это:

ssh admin@192.168.0.110
wget http://localhost:8080/

Я получаю index.html со следующим содержанием

<!DOCTYPE html>
<!--
 *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
-->
<html>
<head>

  <meta charset="utf-8">
  <meta name="description" content="WebRTC reference app">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
  <meta itemprop="description" content="Video chat using the reference WebRTC application">
  <meta itemprop="image" content="/images/webrtc-icon-192x192.png">
  <meta itemprop="name" content="AppRTC">
  <meta name="mobile-web-app-capable" content="yes">
  <meta id="theme-color" name="theme-color" content="#1e1e1e">

  <base target="_blank">

  <title>AppRTC</title>

  <link rel="manifest" href="/manifest.json">
  <link rel="icon" sizes="192x192" href="/images/webrtc-icon-192x192.png">

  <link rel="canonical" href="">

  <link rel="stylesheet" href="/css/main.css">

</head>

<body>
  <!--
   * Keep the HTML id attributes in sync with |UI_CONSTANTS| defined in
   * appcontroller.js.
  -->
  <div id="videos">
    <video id="mini-video" autoplay playsinline muted></video>
    <video id="remote-video" autoplay playsinline></video>
    <video id="local-video" autoplay playsinline muted></video>
  </div>

  <div id="room-selection" class="hidden">
    <h1>AppRTC</h1>
    <p id="instructions">Please enter a room name.</p>
    <div>
      <div id="room-id-input-div">
... and a whoel bunch of stuff that looks promising

Что я делаю не так? Как получить доступ к этому серверу / проекту apprtc удаленно?

...