SOLVED How to access the app from the outside without setting hostnetwork?

molichen

Cadet
Joined
Jan 17, 2024
Messages
9
I installed a app called MTPHOTO.
It doesn't have a hostnetwork option in its network settings.
When I access it through my domain:port,access is denied.
But I can access qbittorrent normally via domain:port.
Please tell me how I should set it up.
Thanks a lot.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I saw in your post to the Chinese sub-forum that you are possibly using nginX as a reverse proxy?

The thing about that:

If you're wanting to use a reverse proxy to redirect to an app (and the reverse proxy is itself an app), you may need to use the internal kubernetes DNS name of the app you want to publish (use heavyscript to work out what that DNS name is: https://github.com/Heavybullets8/heavy_script, options 2, 1).

If you're just wanting to access the app, use the IP of the NAS instead of your domain name (but still specify the port).
 

molichen

Cadet
Joined
Jan 17, 2024
Messages
9
I saw in your post to the Chinese sub-forum that you are possibly using nginX as a reverse proxy?

The thing about that:

If you're wanting to use a reverse proxy to redirect to an app (and the reverse proxy is itself an app), you may need to use the internal kubernetes DNS name of the app you want to publish (use heavyscript to work out what that DNS name is: https://github.com/Heavybullets8/heavy_script, options 2, 1).

If you're just wanting to access the app, use the IP of the NAS instead of your domain name (but still specify the port).
Thanks.
I just want to access the app.
I use the [ipv6]:port,the access is denied.
The port number is 28063:8063
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I use the [ipv6]:port,the access is denied.
The port number is 28063:8063
Access denied sounds like you're getting to the app, but the app doesn't like the URL.

Maybe you need to change some settings in the app to have it listen/accept traffic on the IPv6 address.
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
Is ipv6 Access even possible right now? There were some Posts in 2023 that aksked for ipv6 Support but If i remember it right there is no ipv6 Support right now...

Edit: fixed typos
 

molichen

Cadet
Joined
Jan 17, 2024
Messages
9
Is ipv6 Access even possible right now? There were some Posts in 2023 that aksked for ipv6 Support but If i remember it right there is no ipv6 Support right now...

Edit: fixed typos
I think it's support now.
I can access my qBittorrent via ipv6
 

molichen

Cadet
Joined
Jan 17, 2024
Messages
9
Access denied sounds like you're getting to the app, but the app doesn't like the URL.

Maybe you need to change some settings in the app to have it listen/accept traffic on the IPv6 address.
If the application setting does not set the network to hostnetwork option, can I modify it from the command line?
 

molichen

Cadet
Joined
Jan 17, 2024
Messages
9
Access denied sounds like you're getting to the app, but the app doesn't like the URL.

Maybe you need to change some settings in the app to have it listen/accept traffic on the IPv6 address.
Thanks a lot.
The official app closes ipv6 by default.
 
Top