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

How do I get the Target/ Client IP address once connected #2872

Open
leochen9986 opened this issue Feb 14, 2024 · 3 comments
Open

How do I get the Target/ Client IP address once connected #2872

leochen9986 opened this issue Feb 14, 2024 · 3 comments
Labels
[apps] Area: Test applications related improvements Type: Question Questions or things that require clarification
Milestone

Comments

@leochen9986
Copy link

I was trying to capture the device ip address which connected to my SRT server /device. It only show Accepted Target Connection without showing the IP address . Is it possible to find the IP address ?

@leochen9986 leochen9986 added the Type: Question Questions or things that require clarification label Feb 14, 2024
@leochen9986
Copy link
Author

I am using the srt-live-transmit

@ethouris
Copy link
Collaborator

ethouris commented Feb 14, 2024

The address is extracted in the srt_accept call. If the application doesn't report it, it would have to be modified to show it. I can see it is printing in the verbose stream, so you just need to add printing scl.str() somewhere. The file is apps/transmitmedia.cpp.

@maxsharabayko maxsharabayko added the [apps] Area: Test applications related improvements label Feb 14, 2024
@maxsharabayko maxsharabayko added this to the v1.5.4 milestone Feb 14, 2024
@leochen9986
Copy link
Author

How about for the disconnection ? Will it able to print which IP address has disconnected ? Or it only able allow 1 device for connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[apps] Area: Test applications related improvements Type: Question Questions or things that require clarification
Projects
None yet
Development

No branches or pull requests

3 participants