atyenoria / janus-webrtc-gateway-docker

Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
687 stars 200 forks source link

What exactly is your_host_ip.global? #56

Closed c4b4d4 closed 1 year ago

c4b4d4 commented 4 years ago

First of all, I'm running the docker in a Mac. And I've successfully ran it with these commands as suggested:

make build
make run

And the logs show:

Compiled on: Sat Apr 25 05:42:54 UTC 2020

Logger plugins folder: /usr/local/lib/janus/loggers [WARN] Couldn't access logger plugins folder...

Starting Meetecho Janus (WebRTC Server) v0.9.2

Checking command line arguments...
Debug/log level is 4
Debug/log timestamps are disabled
Debug/log colors are enabled
Adding 'vmnet' to the ICE ignore list...
Using 10.0.2.15 as local IP...
[WARN] Token based authentication disabled
Initializing recorder code
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support disabled)
TURN REST API backend: (disabled)
[WARN] Janus is deployed on a private address (10.0.2.15) but you didn't specify any STUN server! Expect trouble if this is supposed to work over the internet and not just in a LAN...
Crypto: BoringSSL
[WARN] No cert/key specified, autogenerating some...
Fingerprint of our certificate: 73:2E:6B:F0:53:64:E8:88:FB:39:1E:E9:7E:3B:CD:18:7D:02:01:F5:C5:DA:06:17:A3:D9:5D:CE:56:74:CB:AC
[WARN] Event handlers support disabled
Plugins folder: /usr/local/lib/janus/plugins
Loading plugin 'libjanus_textroom.so'...
Sessions watchdog started
Joining Janus requests handler thread
JANUS TextRoom plugin initialized!
Loading plugin 'libjanus_audiobridge.so'...
JANUS AudioBridge plugin initialized!
Loading plugin 'libjanus_streaming.so'...
JANUS Streaming plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Loading plugin 'libjanus_sip.so'...
JANUS SIP plugin initialized!
Loading plugin 'libjanus_voicemail.so'...
JANUS VoiceMail plugin initialized!
Loading plugin 'libjanus_videocall.so'...
JANUS VideoCall plugin initialized!
Loading plugin 'libjanus_echotest.so'...
JANUS EchoTest plugin initialized!
Loading plugin 'libjanus_nosip.so'...
JANUS NoSIP plugin initialized!
Loading plugin 'libjanus_videoroom.so'...
JANUS VideoRoom plugin initialized!
Transport plugins folder: /usr/local/lib/janus/transports
Loading transport plugin 'libjanus_websockets.so'...
libwebsockets logging: 0
WebSockets server started (port 8188)...
[WARN] Secure WebSockets server disabled
[WARN] Admin WebSockets server disabled
[WARN] Secure Admin WebSockets server disabled
JANUS WebSockets transport plugin initialized!
WebSockets thread started

So I believe everything ran perfectly, am I not right?

The only problem is, I don't know what to do next. I'm trying to visit the website of the samples hosted in the docker, but I'm lost.

What exactly is your_host_ip.global?

My virtual docker machine IP is the following (Got this from ifconfig)

vboxnet0: <UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    inet 192.168.99.1 netmask 0xffffff00 broadcast 192.168.99.255

How would I connect to this "your_host_ip.global" address from my main laptop?

zkBounty commented 4 years ago

Per your janus logs, its being hosted on 10.0.2.15. Maybe you should try that in the browser instead. That said just opening into localhost/ in the browser should work too.

c4b4d4 commented 4 years ago

I’m also new with dockers, so, (afaik) do I have to do a special “link” so my host connect to that docker’s localhost? Isn’t the IP (192.168.99.1) of the virtualbox (which is where the docker is launched) the localhost? ‘Cause the localhost of my laptop is 127.0.0.1

(Already tried to put 192.168.99.1, in the browser and it does nothing :()

On Sun, Apr 26, 2020 at 1:03 AM zkBounty notifications@github.com wrote:

Per your janus logs, its being hosted on 10.0.2.15. Maybe you should try that in the browser instead. That said just opening into localhost/ in the browser should work too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/atyenoria/janus-webrtc-gateway-docker/issues/56#issuecomment-619488832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC3TD64ZM2KYC2CI3YOD7LROPFCRANCNFSM4MQUIA2Q .

-- Carlos Cabada

adrien-prototype commented 4 years ago

Same for me here, did you find any solution to this @kzka90 ?

c4b4d4 commented 4 years ago

Not yet @adrien-prototype :(

adrien-prototype commented 4 years ago

@kzka90 it worked for me calling it on the client side with 'ws://192.168.99.1/8188'

I did an ifconfig and took the en0 ip

Jaikant commented 3 years ago

Facing the same issue, new to docker as well, so probably something basic.

As per docker logs, the IP is 192.168.65.3

Using 192.168.65.3 as local IP...

[WARN] Token based authentication disabled

Initializing recorder code

Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support disabled)

TURN REST API backend: (disabled)

[WARN] Janus is deployed on a private address (192.168.65.3) but you didn't specify any STUN server! Expect trouble if this is supposed to work over the internet and not just in a LAN...

Crypto: BoringSSL

My docker config is

$ docker network ls
NETWORK ID          NAME                  DRIVER              SCOPE
2e88fa9bf9f9        bridge                bridge              local
0cc597e16ff1        hello-world_default   bridge              local
d450ecc8e15a        host                  host                local
c211c027b609        none                  null                local

My ifconfig is

$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
    inet 127.0.0.1 netmask 0xff000000 
    inet6 ::1 prefixlen 128 
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
    nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
XHC20: flags=0<> mtu 0
XHC0: flags=0<> mtu 0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether f0:18:98:4e:97:34 
    inet6 fe80::1835:1032:d58a:b02%en0 prefixlen 64 secured scopeid 0x6 
    inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255
    nd6 options=201<PERFORMNUD,DAD>
    media: autoselect
    status: active
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
    ether 02:18:98:4e:97:34 
    media: autoselect
    status: inactive
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484
    ether 3a:f3:82:04:ee:d6 
    inet6 fe80::38f3:82ff:fe04:eed6%awdl0 prefixlen 64 scopeid 0x8 
    nd6 options=201<PERFORMNUD,DAD>
    media: autoselect
    status: active
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    options=60<TSO4,TSO6>
    ether 52:00:ed:69:b7:01 
    media: autoselect <full-duplex>
    status: inactive
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    options=60<TSO4,TSO6>
    ether 52:00:ed:69:b7:00 
    media: autoselect <full-duplex>
    status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=63<RXCSUM,TXCSUM,TSO4,TSO6>
    ether 52:00:ed:69:b7:01 
    Configuration:
        id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
        maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
        root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
        ipfilter disabled flags 0x2
    member: en1 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 9 priority 0 path cost 0
    member: en2 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 10 priority 0 path cost 0
    nd6 options=201<PERFORMNUD,DAD>
    media: <unknown type>
    status: inactive
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
    inet6 fe80::9517:3977:fe0d:fb9d%utun0 prefixlen 64 scopeid 0xc 
    nd6 options=201<PERFORMNUD,DAD>
en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=4<VLAN_MTU>
    ether 00:e0:4c:68:2f:c6 
    nd6 options=201<PERFORMNUD,DAD>
    media: autoselect (none)
    status: inactive
Jaikant commented 3 years ago

The issue I faced was on the mac, to connect from the mac to the docker container we need to do port forwarding. This awesome repo, has the port forwarding configuration in its Makefile. The only thing missing is the documentation.

On a mac, you need to run

make run-mac

Then go to http://localhost on your browser.