Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
apprtc和webrtc服务器可以';不能远程访问吗?_Webrtc_Apprtc - Fatal编程技术网

apprtc和webrtc服务器可以';不能远程访问吗?

apprtc和webrtc服务器可以';不能远程访问吗?,webrtc,apprtc,Webrtc,Apprtc,设置apprtc服务器时遇到问题,因为我似乎无法远程访问它。以下是我所做的和目前正在发生的事情 我把这个项目克隆到了ubuntu 16.06服务器上 我按照安装说明进行操作 目前,当我在我的windows机器上的浏览器中键入任何这些URL时,http://192.168.0.110:8000,http://192.168.0.110:8080,http://localhost:8000,http://localhost:8080 ,http://localhost:8089,我收到一个错误消息

设置apprtc服务器时遇到问题,因为我似乎无法远程访问它。以下是我所做的和目前正在发生的事情

我把这个项目克隆到了ubuntu 16.06服务器上

我按照安装说明进行操作

目前,当我在我的windows机器上的浏览器中键入任何这些URL时,
http://192.168.0.110:8000
http://192.168.0.110:8080
http://localhost:8000
http://localhost:8080
http://localhost:8089
,我收到一个错误消息,如无法访问此站点、连接被拒绝等

但是,如果打开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服务器/项目?

您找到解决方案了吗?@Hassaan我还没有时间重新讨论这个问题。但我所能做的是成功地按照这个项目中的步骤来实现双向视频通话。在这个项目中,它只使用STUN服务器和Node.JS服务器在两台计算机之间建立握手。好的,谢谢,让我转到上面的示例项目。如果有任何问题,请阅读作者的博客文章,他链接到:。这解释了他为什么这么做。对我来说,简单地签出项目,然后运行项目是开箱即用的。这让我对如何扩展项目有了足够的了解。