Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clvc client cannot connect to server #7

Open
mariosavior opened this issue Nov 22, 2018 · 5 comments
Open

Clvc client cannot connect to server #7

mariosavior opened this issue Nov 22, 2018 · 5 comments

Comments

@mariosavior
Copy link

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
Copy link
Owner

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
Copy link

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

@ramonfontes
Copy link
Owner

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

@mariosavior
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants