-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
srs_get_peer_ip
retrieves the client's address.
#1543
Comments
I also encountered the same problem. After using getpeername, it returns 0.0.0.0. How can I solve this? The system I am using is openSUSE.
|
Originally it was getpeername, later changed to getsockname: link I checked the manual and confirmed that getpeername should indeed be used.
|
winlinvip
changed the title
srs_get_peer_ip 获取客户端的地址
Jul 28, 2023
srs_get_peer_ip
retrieves the client's address.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description'
Please ensure that the markdown structure is maintained.
Description'
Describe the problem you encountered.
The 'ip' inside 'on_play' is the local IP instead of the client player's IP.
Please ensure that the markdown structure is maintained.
Environment'
Please ensure that the markdown structure is maintained.
srs3.0
centos7
'Please ensure that the markdown structure is maintained.
Solution:
Change
getsockname
togetpeername
.Please ensure that the markdown structure is maintained.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: