pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.
Apache License 2.0
214 stars 66 forks source link

Can't set server address #68

Closed Y2Kot closed 2 years ago

Y2Kot commented 2 years ago

Hello, Is it possible to set server address manually? I checked for now and find that methods unused. Am i right?

pedroSG94 commented 2 years ago

What do you means with set address? The address is the device ip and port used in constructor.

Do you means application and stream name? Why do you need it if you haven't support for push?

MalteHillmann commented 2 years ago

I think the problem is, that in RtspServer.kt the IP-Address is automatically set by the private function getIPAddress: https://github.com/pedroSG94/RTSP-Server/blob/a88620ec6e602d7ab8e933ee41593a78d2bce839/rtspserver/src/main/java/com/pedro/rtspserver/RtspServer.kt#L27

But when you are connected to a VPN the IP-Address responded by this function is wrong. Its the local cellular radio or wifi ip address instead of the VPN address. So yes, a function to override that server address or (in my case) the recognition of vpn addresses would be nice.

Kind regards Malte

Y2Kot commented 2 years ago

adding pr #71 to solve this problem