Mediaflow Proxy usage

Usage- Add mediaflow proxy to Stremio Aim - Ability to watch stremio without IP restriction
Hello. Am trying to setup Mediaflow Proxy docker container locally on my proxmox machine. I can access the the deployed container on <ip>:8888 without any problems, and can run the speedtest command as well. Now using the docs page, if i execute the /proxy/ip command it gives me Error: Internal Server Error. Logs for this are attatched. Further i ran a nginx reverse proxy to access the <ip>:8888 outside network so the network looks like site.something.xyz and i can see mediaflow proxy interface outside my home network. But when i execute the /proxy/ip command it gives me same error again. please help me out here, how to proceed.
23 Replies
marsweed
marsweedOP4w ago
@mhdzumair would you please look into it please
mhdzumair
mhdzumair4w ago
Yeah the issue is, we're setting up the port 8888 as pia vpn proxy server inside the mediafusion container. Thats the reason its not working when you also setting up localhost with port 8888. You can run the mediaflow with port 8889:8888 so this will run port 8889 and use that port in the config. Ahh wait i just looked your logs. Its failed due to httpx unable to connect to the internet. Httpx sometime failed on connecting. Are you seeing the same issue ?
marsweed
marsweedOP4w ago
i'd answer that if i understood what you mean. am a regular bloke and who reached at your page googling stuff man i don't know what httpx is
mhdzumair
mhdzumair4w ago
Ahh no worry about httpx. It was the python package we're using to do the network. You're using mediafusion and mediaflow in selfhosted?
marsweed
marsweedOP4w ago
do i need to self host mediafusion as well? i didn't know that. i thought i'd host mediaflow proxy on my server, use mediafusion instance hosted https://mediafusion.elfhosted.com/ and enter the ip of mediaflow proxy do i need to host mediafusion as well?
marsweed
marsweedOP4w ago
ahh i just saw this is also there and there's a docker compos version in it as well
No description
mhdzumair
mhdzumair4w ago
Yes you can use the public mediafusion with your self hosted mediaflow. Ahh again i mean you can host the mediafusion or you can use elfhosted public mediafusion. But the issue that you're point is not because of mediafusion. Could you explain about the docker network you setup? Are you setup warp or something?
marsweed
marsweedOP4w ago
i had warp enabled on desktop pc (not on my proxmox) but i disbaled it right now and it's giving same errors by docker network do you mean if i deployed container as host or bridge inside docker? well i selected host docker run -p 8888:8888 -e API_PASSWORD=your_password mhdzumair/mediaflow-proxy instead of running this i deployed it using portainer this time. last night i deployed it directly without portainer and it showed same errors
mhdzumair
mhdzumair4w ago
go inside the docker with exec. then run the python,
poetry run python
poetry run python
then try running below.
import httpx
httpx.get("https://api.ipify.org?format=json").json()
import httpx
httpx.get("https://api.ipify.org?format=json").json()
mhdzumair
mhdzumair4w ago
okay so it again failed to connect to network. try with https://www.google.com
Google
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
marsweed
marsweedOP4w ago
httpx.get("https://www.google.com?format=json").json() this?
mhdzumair
mhdzumair4w ago
httpx.get("https://www.google.com").text
httpx.get("https://www.google.com").text
marsweed
marsweedOP4w ago
okay a wall of text appeared
marsweed
marsweedOP4w ago
No description
mhdzumair
mhdzumair4w ago
ahh okay so its only you're not able to connect to https://api.ipify.org?format=json server then you can do following. mediafusion support setting public ip in the config. so setup your server public ip address directly. so it wont try to fetch the ip from this
marsweed
marsweedOP4w ago
i can run https://api.ipify.org on PC's browser and it shows me my ip address though same network
mhdzumair
mhdzumair4w ago
yeah its seems like its blocking the proxy server. will need to change the url then. may be i can make it as env variable.
mhdzumair
mhdzumair4w ago
just setup your public ip address in the mediaflow.
No description
marsweed
marsweedOP4w ago
i don't have a static ip at home though. i think it is swapped every 24 hours or so will i have to keep adding my new IP in mediaflow configuration?
marsweed
marsweedOP4w ago
setup something like this. right?
No description
mhdzumair
mhdzumair4w ago
yess
marsweed
marsweedOP4w ago
Got it. Thankyou I will try to set everything up tomorrow.
Want results from more Discord servers?
Add your server