我在设置apprtc服务器时遇到了麻烦,因为我似乎无法远程访问它。这就是我所做的以及目前正在发生的事情。
我把这个项目克隆到ubuntu 16.06服务器上。
https://github.com/webrtc/apprtc
我按照安装说明操作。
目前,当我在我的Windows机器上输入我的浏览器中的任何一个,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服务器/项目?