ramonfontes / reproducible-research

62 stars 35 forks source link

Clvc client cannot connect to server #7

Open mariosavior opened 5 years ago

mariosavior commented 5 years ago

Hi all, I was working with vanet.py and when I run it, the two vlc screens in which you can see the video sent by the server and that same video when the client receives it, do not appear.

When I noticed this, edit the code adding the following lines before the server sends the video (cars [0] .cmdPrint ()) in order to kill possible vlc process running and also to allow all users to use vlc as root. Well, with these two lines, I got to watch the server vlc screen, but not the client one: -os.system ("pkill -f vlc") -cars [0] .cmdPrint ("sed -i 's / getuid / getppid /' / usr / bin / vlc")

Trying to fix this situation, I stoped the execution just before client (client.cmdPrint ()) and opned a terminal of "xterm client". Once inside of xterm I tried to run the same commands: -sed -i 's / getuid / getppid /' / usr / bin / vlc -cvlc rtsp: //200.0.10.100: 8080 / helmet.sdp &

and this is the error output in client xterm:

VLC media player 3.0.2 Vetinari (revision 3.0.2-0-gd7b653cf14)

[00005594da8ddf30] dbus interface error: Failed to connect to the D-Bus session daemon: Failed to connect to socket /tmp/dbus-3hgbnyINET: Connection refused [00005594da8ddf30] main interface error: no suitable interface module [00005594da80c1a0] main libvlc error: interface "dbus,none" initialization failed [00005594da8e12c0] dummy interface: using the dummy interface module... [00007f5400000ea0] live555 demux error: Failed to connect with rtsp://200.0.10.100:8080/helmet.sdp [00007f54000036f0] main stream error: connection failed: No route to host [00007f54000036f0] satip stream error: Failed to connect to RTSP server 200.0.10.100:8080 root@debian:/home/mario/A&Hn/Proyect# [00007f54000036f0] main stream error: connection failed: No route to host [00007f54000036f0] access_realrtsp stream error: cannot connect to 200.0.10.100:8080 [00007f54000036f0] main stream error: Connection failed [00007f54000036f0] main stream error: VLC could not connect to "200.0.10.100:8080". [00007f53fc0009e0] main input error: Your input can't be opened [00007f53fc0009e0] main input error: VLC is unable to open the MRL 'rtsp://200.0.10.100:8080/helmet.sdp'. Check the log for details.

I cannot make a "client ping car0" neither. It says "Network is unreachable" Why the client cannot connect to the server?

ramonfontes commented 5 years ago

Hi,

I'm porting the code to the newest version of Mininet-WiFi on branch beta. The routing table still have to be fixed.

ederollora commented 5 years ago

Can we move to a specific commit so that the table is still working?

ramonfontes commented 5 years ago

You should try the last commit from the master branch of the mn-wifi repo and the beta branch of this repo.

mariosavior commented 5 years ago

Hi again,

I pulled from Mininet-Wifi master branch and checked out beta brunch in this repo as you said. The problem is the same. Only one of the screens appears, and I believe is the Server one, because I stopped the execution just before the "applying second rule"stage and opened a terminal of the client. Once inside of xterm I tried to run the same commands and the error was again:

root@debian:/home/mario/reproducible-research/mininet-wifi/IEEE-Access-2017#  cvlc rtsp://192.168.200.1:8080/helmet.sdp &
root@debian:/home/mario/reproducible-research/mininet-wifi/IEEE-Access-2017# VLC media player 3.0.2 Vetinari (revision 3.0.2-0-gd7b653cf14)
[0000558d78884ea0] dbus interface error: Failed to connect to the D-Bus session daemon: Failed to connect to socket /tmp/dbus-GOGE2shDSg: Connection refused
[0000558d78884ea0] main interface error: no suitable interface module
[0000558d787b31a0] main libvlc error: interface "dbus,none" initialization failed
[0000558d78888230] dummy interface: using the dummy interface module...
[00007fe838000ea0] live555 demux error: Failed to connect with rtsp://192.168.200.1:8080/helmet.sdp
[00007fe8380036f0] main stream error: connection failed: No route to host
[00007fe8380036f0] satip stream error: Failed to connect to RTSP server 192.168.200.1:8080
[00007fe8380036f0] main stream error: connection failed: No route to host
[00007fe8380036f0] access_realrtsp stream error: cannot connect to 192.168.200.1:8080
[00007fe8380036f0] main stream error: Connection failed
[00007fe8380036f0] main stream error: VLC could not connect to "192.168.200.1:8080".
[00007fe8340009e0] main input error: Your input can't be opened
[00007fe8340009e0] main input error: VLC is unable to open the MRL 'rtsp://192.168.200.1:8080/helmet.sdp'. Check the log for details.

In addition, I tried again to ping car1 from client, and it was also unreachable.

Could you try it out yourself and let me know if you experience the same errors?

Thanks

ramonfontes commented 5 years ago

I just updated the readme and I added information regarding the commit from Mininet-WiFi you need to use.