Ubuntu cant connect to port 8433, port is open, Kurento Media Server

749 views
Skip to first unread message

Kevin D

unread,
Mar 7, 2018, 6:00:46 PM3/7/18
to kurento

stalled Kurento media server using the installation guide found here : http://builds.kurento.org/dev/master/latest/docs/installation_guide.html

I opened the ports in UFW

sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
8433                       ALLOW       Anywhere
8443                       ALLOW       Anywhere
8888                       ALLOW       Anywhere

I started the server using sudo service kurento-media-server-6.0 start . I got no response, but the log file seems to suggest it started.

I checked netstat -l to see if it was listening to the port.


netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 [::]:8433               [::]:*                  LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     STREAM     LISTENING     189324   /run/user/1000/systemd/private
unix  2      [ ACC ]     SEQPACKET  LISTENING     10029    /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     10011    /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     10015    /run/systemd/journal/stdout
unix  2      [ ACC ]     STREAM     LISTENING     10017    /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     10027    /run/lvm/lvmpolld.socket
unix  2      [ ACC ]     STREAM     LISTENING     10030    /run/systemd/fsck.progress
unix  2      [ ACC ]     STREAM     LISTENING     13284    /run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     13289    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     13290    /run/snapd.socket
unix  2      [ ACC ]     STREAM     LISTENING     13291    /run/snapd-snap.socket
unix  2      [ ACC ]     STREAM     LISTENING     13292    /run/uuidd/request

it appears to be listening,

Next i checked ss -lnp | grep 8433 got this response


ss -lnp | grep 8433
tcp    LISTEN     0      0        :::8433                 :::*                   users:(("kurento-media-s",pid=14442,fd=8))

Seems to be listening ...

So first I checked using this website to see if the port was openhttps://www.yougetsignal.com/tools/open-ports/

It claims it is closed.

Next I checked by using the wget command targeting the port on local host to see if I could get a connection.


wget localhost:8433
--2018-03-06 20:00:07--  http://localhost:8433/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8433...

Gets stuck while connecting. it never connects it just sits.

What am I missing ? I cant even start the kurento tutorials because I cant connect to KMS at all ...

Any advice would be apreciated, I dont know where to go from here. .. .

Micael Gallego

unread,
Mar 7, 2018, 8:05:14 PM3/7/18
to kur...@googlegroups.com
The port for plain Websocket connection is 8888 in KMS.

Why do you want to use 8433 port?


El 7 mar. 2018 7:00 p. m., "Kevin D" <kd2...@student.lnu.se> escribió:

stalled Kurento media server using the installation guide found here : 

I opened the ports in UFW

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/e1ec2c57-c441-4f5b-b046-8104f9f8b9fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin D

unread,
Mar 8, 2018, 10:37:20 AM3/8/18
to kurento
I switched the .conf file to port 8433 to see if the issue was the port. 
I got the same results with port 8888. 
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.

Luke Kroon

unread,
Mar 8, 2018, 11:11:28 AM3/8/18
to kurento
Disable UFW and restart the machine. Try to connect again. I had a problem with UFW, in the end i removed it and installed Firewalld.

Kevin D

unread,
Mar 8, 2018, 1:02:49 PM3/8/18
to kurento
This will be difficult because my service provider includes rules which do not allow any port connections when UFW is disabled... 
I will try to contact them and see what happens. 
Thanks for the advice. 

Kevin D

unread,
Mar 9, 2018, 11:59:12 AM3/9/18
to kurento
I contacted my service provided and had everything set up.
It appears UFW is in fact incompatible with Kurento for some reason ...

Jon Ruddell

unread,
Mar 9, 2018, 6:26:18 PM3/9/18
to kurento
My only suggestion would be to check the other related StackOverflow which found a solution: https://stackoverflow.com/questions/48557856/ufw-not-allowing-kurento-media-server-6-7-to-get-connected-through-ws-uri

Best,
Jon
Reply all
Reply to author
Forward
0 new messages