pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't set server address

Y2Kot opened this issue · comments

commented

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

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?

I think the problem is, that in RtspServer.kt the IP-Address is automatically set by the private function getIPAddress:

val serverIp by lazy { getIPAddress(true) }

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

commented

adding pr #71 to solve this problem