Shorten URLs within the same network?

0

I have a question maybe something silly,

I'm using the MEGA SDK for Android that they have posted on github, all right, I can use it, manage the account, etc.

But here the point, MEGA has a service of local web server (Streaming), which generates a local link so that it can be accessible within the same network in several devices, for example let's say that I generate this local .mp4 file on my android device:

Using the SDK command: httpServerGetLocalLink () which returns me:

http://127.0.0.1:4443/674GBQRC/Dunkerque.mp4

And to access it, let's say, playing it on TV via streaming would be:

(Using the ip of the device where I generated the local link)

http://192.168.1.100:4443/674GBQRC/Dunkerque.mp4

Perfect, I can play the video on the TV using the URL, but can I shorten that url?

Leave it alone that works by placing the ip + the port and thus avoid placing the exact URL, example:

http://192.168.1.100:4443/v.mp4 / http://192.168.1.100:4443

Is this possible?

I guess I have to walk the URL to a string and then pass that String to a webservice or something similar, I'm still not clear on how to achieve such a thing.

Any suggestions?

    
asked by Luis Rivas 14.07.2018 в 04:03
source

0 answers