Genymobile / Genymobile/scrcpy

Unable to connect over TCP/IP

Open
#2,889 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [*] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [*] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
- OS: Arch Linux x64 5.10.85-xanmod1-1-lts
- scrcpy version:
```
$ scrcpy -v
scrcpy 1.21

dependencies:
- SDL 2.0.18
- libavcodec 58.134.100
- libavformat 58.76.100
- libavutil 56.70.100
- libavdevice 58.13.100`
```
- installation method: Arch community package
- device model: Poco X3
- Android version: 11

**Describe the bug**
Unable to connect over TCP/IP, lan WIFI in this case

On errors, please provide the output of the console (and `adb logcat` if relevant).
```
$ scrcpy --tcpip=192.168.1.11:41521
scrcpy 1.21
WARN: Could not disable minimize on focus loss
failed to connect to '192.168.1.11:41521': Connection refused
ERROR: Could not connect to 192.168.1.11:41521
ERROR: Server connection failed

$ nmap -p 41521 192.168.1.11
Starting Nmap 7.92 ( https://nmap.org ) at 2021-12-18 19:20 IST
Nmap scan report for ap (192.168.1.11)
Host is up (0.030s latency).

PORT STATE SERVICE
41521/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds

$ ping -c 3 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.
64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=5.87 ms
64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=1.28 ms
64 bytes from 192.168.1.11: icmp_seq=3 ttl=64 time=1.57 ms

--- 192.168.1.11 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.275/2.904/5.870/2.100 ms
```
USB and Wireless debugging are both enabled - https://i.imgur.com/A3RqPPh.jpg

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `scrcpy --tcpip=192.168.1.11:41521` command with the listed Arch Linux, Android 11, and scrcpy 1.21 environment, then inspect the TCP/IP connection path and the supplied connection-refused output. Done means identifying a reproducible cause and confirming a fix or documenting the required connection conditions; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, arch-linux, c
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.