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

troubleshooting connection refused error on linux #71

Open
kadirayk opened this issue Sep 11, 2018 · 1 comment
Open

troubleshooting connection refused error on linux #71

kadirayk opened this issue Sep 11, 2018 · 1 comment

Comments

@kadirayk
Copy link

I have successfuly built source code on ubuntu (32 bit). I am trying to run neverball with ga-server-event-driven, game starts fine but client is not able to connect to the server. The behavior is the same when I use the pre-compiled binaries for Linux. Is there a way to troubleshoot this problem to see the error in more detail?

here is my server's output:

galinux@galinux-VirtualBox:~/myprog/gaminganywhere/bin$ ./ga-server-event-driven config/server.neverball.conf
# [11271] 1536687690.454406 # include: config/common/server-common.conf
# [11271] 1536687690.454468 # include: config/common/controller.conf
# [11271] 1536687690.454483 # include: config/common/video-x264.conf
# [11271] 1536687690.454495 # include: config/common/video-x264-param.conf
# [11271] 1536687690.454525 # include: config/common/audio-lame.conf
# [11271] 1536687690.454575 Game exe: /usr/games/neverball
Configuration file: /home/galinux/myprog/gaminganywhere/bin/./config/server.neverball.conf
# [11271] 1536687690.454596 Game dir: switched to /usr/games
# [11272] 1536687690.455236 CMD: LD_LIBRARY_PATH=/home/galinux/myprog/gaminganywhere/bin/. LD_PRELOAD="/home/galinux/myprog/gaminganywhere/bin/./ga-hook-sdl.so" GA_ROOT=/home/galinux/myprog/gaminganywhere/bin/. GA_CONFIG=/home/galinux/myprog/gaminganywhere/bin/./config/server.neverball.conf /usr/games/neverball
===================================================

galinux@galinux-VirtualBox:~/myprog/gaminganywhere/bin$ # [11274] 1536687690.558132 ga-hook-sdl loaded!
# [11274] 1536687690.559997 # include: /home/galinux/myprog/gaminganywhere/bin/./config/common/server-common.conf
# [11274] 1536687690.560063 # include: /home/galinux/myprog/gaminganywhere/bin/./config/common/controller.conf
# [11274] 1536687690.560084 # include: /home/galinux/myprog/gaminganywhere/bin/./config/common/video-x264.conf
# [11274] 1536687690.560102 # include: /home/galinux/myprog/gaminganywhere/bin/./config/common/video-x264-param.conf
# [11274] 1536687690.560139 # include: /home/galinux/myprog/gaminganywhere/bin/./config/common/audio-lame.conf
# [11274] 1536687690.560197 # RTSP[config]: using 'tcp' for RTP flows.
# [11274] 1536687690.560207 # RTSP[config]: controller port = 8555
# [11274] 1536687690.560214 # RTSP[config]: controller via 'udp' protocol.
# [11274] 1536687690.560274 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
# [11274] 1536687690.560303 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3))
# [11274] 1536687690.560337 # RTSP[config]: video specific option: b = 3000000
# [11274] 1536687690.560348 # RTSP[config]: video specific option: g = 48
# [11274] 1536687690.560354 # RTSP[config]: video specific option: intra-refresh = 1
# [11274] 1536687690.560360 # RTSP[config]: video specific option: me_method = dia
# [11274] 1536687690.560366 # RTSP[config]: video specific option: me_range = 16
# [11274] 1536687690.560372 # RTSP[config]: video specific option: preset = faster
# [11274] 1536687690.560378 # RTSP[config]: video specific option: profile = main
# [11274] 1536687690.560383 # RTSP[config]: video specific option: refs = 1
# [11274] 1536687690.560390 # RTSP[config]: video specific option: slices = 4
# [11274] 1536687690.560395 # RTSP[config]: video specific option: threads = 4
# [11274] 1536687690.560401 # RTSP[config]: video specific option: tune = zerolatency
# [11274] 1536687690.564065 key-blocking initialized: 0+0 keys blocked.
# [11274] 1536687690.564136 SDL hook: initialized.
# [11274] 1536687690.564151 SDL hook: BlitSurface == UpperBlit.
Creating a window (800x600, windowed)
Created a window (2, 800x600, windowed)

and this is client's output:

galinux@galinux-VirtualBox:~/myprog/gaminganywhere-0.8.0/bin$ ./ga-client config/client.abs.conf rtsp://localhost:8554/desktop
# [11121] 1536686981.765890 # include: config/common/controller.conf
# [11121] 1536686981.766282 # include: config/common/video-x264.conf
# [11121] 1536686981.766318 # include: config/common/audio-lame.conf
# [11121] 1536686981.766402 # RTSP[config]: using 'udp' for RTP flows.
# [11121] 1536686981.766418 # RTSP[config]: controller port = 8555
# [11121] 1536686981.766421 # RTSP[config]: controller via 'udp' protocol.
# [11121] 1536686981.766462 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
# [11121] 1536686981.766482 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3))
# [11121] 1536686981.766505 # RTSP[config]: video specific option: threads = auto
Remote server @ localhost[127.0.0.1]:8554
# [11121] 1536686982.006081 SDL: prefer opengl hardware renderer.
# [11121] 1536686982.006109 controller queue: initialized size=32708 (481 units)
watchdog: launched, waiting for audio/video frames ...
# [11121] 1536686982.006246 rtspclient: max tolerable video delay disabled.
*** SAVEFILE: YUV image saved to 'NULL'; timestamp saved to 'NULL'.
RTP reordering threshold = 300000
# [11121] 1536686982.006279 qos-measurement: initialized.
# [11121] 1536686982.006326 controller socket: socket address [127.0.0.1:8555]
# [11121] 1536686982.006337 controller client-thread started: tid=11127.
Opening connection to 127.0.0.1, port 8554...
...Connection to server failed: Connection refused
[URL:"rtsp://localhost:8554/desktop"]: Failed to get a SDP description: Connection to server failed: Connection refused
Connect to rtsp://localhost:8554/desktop failed.
# [11121] 1536686982.006570 qos-measurement: deinitialized.
[URL:"rtsp://localhost:8554/desktop"]: Closing the stream.
rtsp thread: no more rtsp clients
rtsp thread: terminated.
@sab-sv
Copy link

sab-sv commented Dec 9, 2021

Hi @kadirayk I am facing the same issue with Assaultcube. Were you able to connect the server and client successfully? Please share what you did to resolve this connection issue.

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

2 participants