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

Help Request For Linux #15

Closed
ozgupolat opened this issue Nov 2, 2023 · 5 comments
Closed

Help Request For Linux #15

ozgupolat opened this issue Nov 2, 2023 · 5 comments

Comments

@ozgupolat
Copy link

Greetings,

I am a linux user and I cannot make Audio Share work.
When I write ./as-cmd -b 10.188.0.1 -e 48, following is the output I get:

[2023-11-02 17:04:58.930] [info] pipewire header_version: 0.3.48, library_version: 0.3.48
bind: Cannot assign requested address

So could you please help me in this regard?
Thank you in advance.

@mkckr0
Copy link
Owner

mkckr0 commented Nov 3, 2023

The IP address is not correct. Use ip addr to see available IP addresses.

@ozgupolat
Copy link
Author

ozgupolat commented Nov 3, 2023

Thank you for your reply.
192.168.205.173 is my ipv4 ip address.
And following is the output:

[2023-11-03 19:44:24.615] [info] pipewire header_version: 0.3.48, library_version: 0.3.48
[2023-11-03 19:44:24.622] [info] endpoint_id: 1
[2023-11-03 19:44:24.622] [info] tcp listen success on 192.168.205.173:65530
[2023-11-03 19:44:24.622] [info] udp listen success on 192.168.205.173:65530
[2023-11-03 19:44:24.622] [info] server started

But this time app says "connection timed out"

Also I tried a different wifi network which assigned 10.188.199.64 as ipv4 ip address,
and output on the app is "No route to host: /10.188.199.64:65530"

@mkckr0
Copy link
Owner

mkckr0 commented Nov 4, 2023

Keep your PC and phone in a same LAN network. If so, they usually have same prefix of IP address, such as 192.168. And modify the "Host" of app to 192.168.205.173, which is same as server.

In summary, there are two required conditions:

  1. PC and phone in a same LAN network.
  2. The PC server and phone app use exactly same IP address and port.

@ozgupolat
Copy link
Author

ozgupolat commented Nov 4, 2023

I think problem was because of the firewall.
When I turn it off, phone and pc can communicate.
However, now app is stuck with the "Starting" message and server with "Accept xxx.xxx.xxx.xxx:39658"

And this is the output of server, I guess it is asking to me to confirm something but cannot find any:

./as-cmd -b 192.168.190.132 -e 123
[2023-11-04 17:08:06.201] [info] pipewire header_version: 0.3.48, library_version: 0.3.48
[2023-11-04 17:08:06.206] [info] endpoint_id: 123
[2023-11-04 17:08:06.206] [info] tcp listen success on 192.168.190.132:65530
[2023-11-04 17:08:06.206] [info] udp listen success on 192.168.190.132:65530
[2023-11-04 17:08:06.206] [info] server started
[2023-11-04 17:08:17.238] [info] accept 192.168.190.131:39658

@mkckr0
Copy link
Owner

mkckr0 commented Nov 5, 2023

No, it won't ask you to add firewall rules like Windows. You must add firewall rules manually.

sudo firewall-cmd --add-rich-rule='rule family="ipv4" destination address="192.168.190.132" port port="65530" protocol="tcp" accept'
sudo firewall-cmd --add-rich-rule='rule family="ipv4" destination address="192.168.190.132" port port="65530" protocol="udp" accept'
sudo firewall-cmd --runtime-to-permanent

@mkckr0 mkckr0 closed this as completed Nov 7, 2023
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