mgutt Posted April 12, 2022 Author Share Posted April 12, 2022 Your router has a public IP. Could be obtained through whatismyip.com or similar. Now open http://<publicIP> Quote Link to comment
carltonb Posted April 12, 2022 Share Posted April 12, 2022 I tried the http://xxx.xx.xxx.232 (http://<publicIP> ) and it says This site can’t be reached. Quote Link to comment
mgutt Posted April 12, 2022 Author Share Posted April 12, 2022 This is what you should see: If this does not work: A) Your router blocks Port 80 B) You don't have a public IPv4 (instead it's a proxified IP of your provider) C) The traffic of Port 80 does not reach any target Check your router settings and verify if your are really having a public IPv4 (through your router, too). Quote Link to comment
carltonb Posted April 12, 2022 Share Posted April 12, 2022 Thank you for sticking with me. I might have missed understood what you asked me to do. Where should I have put in the public ip, I just did it in my Firefox browser. But from the reply you gave it looks like I may have done it wrong. Quote Link to comment
mgutt Posted April 12, 2022 Author Share Posted April 12, 2022 4 minutes ago, carltonb said: I just did it in my Firefox browser. This is correct. My screenshot shows only the mobile chrome browser. EDIT: ah one moment. Maybe you're router does not support hairpinning. Please test the IP from outside of your local network (cell phone mobile data). Quote Link to comment
carltonb Posted April 12, 2022 Share Posted April 12, 2022 I tested the IP from outside of my local network using my cell phones mobile data and got the same message that it could not connect. Quote Link to comment
mgutt Posted April 12, 2022 Author Share Posted April 12, 2022 And which ports did you open in your router and what are the targets of the forwarding? Quote Link to comment
blaine07 Posted April 14, 2022 Share Posted April 14, 2022 I realize that after container has been created this process may vary slightly but is there a way to connect this container to multiple networks?There’s a different version of NPM floating around and it supports such. Does this container support it too? If so, how does one set it up after container has already been created? Does the —net flag still need passed through?For reference, this is other container, but wondering if this is applicable to this container too: Quote Link to comment
mgutt Posted April 14, 2022 Author Share Posted April 14, 2022 This is a basic function of docker and is valid for all containers. 1 Quote Link to comment
blaine07 Posted April 14, 2022 Share Posted April 14, 2022 This is a basic function of docker and is valid for all containers.Are you aware of any guides or tutorials to do this correctly with Unraid?All the thanks, as usual :-) Quote Link to comment
TurboStreetCar Posted April 17, 2022 Share Posted April 17, 2022 On 4/12/2022 at 1:28 PM, mgutt said: This is what you should see: If this does not work: A) Your router blocks Port 80 B) You don't have a public IPv4 (instead it's a proxified IP of your provider) C) The traffic of Port 80 does not reach any target Check your router settings and verify if your are really having a public IPv4 (through your router, too). Hello, i seem to be having a similar problem. im using duckDNS, and if i go on my phone, (outside network) and enter my unraid public IP, with the port that is forwarded to the Nginx port, it works. But if i use the duckDNS address, i get a 502 gateway error. Any idea what im doing wrong? Thanks! Quote Link to comment
mgutt Posted April 17, 2022 Author Share Posted April 17, 2022 4 hours ago, TurboStreetCar said: Any idea what im doing wrong? Check the first posts how to debug 5xx errors Quote Link to comment
m0ngr31 Posted April 22, 2022 Share Posted April 22, 2022 Is there a reason I can't get any apps to work with websockets? I have 2 specifically that I have toggled the `Websockets Support` option and both apps are constantly complaining about websockets not working. One of them in particular has a section for setting up NPM, and it was just toggling the option: https://github.com/advplyr/audiobookshelf#nginx-proxy-manager Is there something obvious I'm missing? Quote Link to comment
mgutt Posted April 23, 2022 Author Share Posted April 23, 2022 I enabled websockets for Plex and it works. Are you using an additional Proxy like cloudflare or do you have a proxified IPv4 address through your internet provider? Quote Link to comment
Sat Posted April 23, 2022 Share Posted April 23, 2022 (edited) Nginx is returning router ip[192.168.0.1] instead of the client ip. This started to happen about a week ago, does anyone know why this is happening? Logs look like this: [23/Apr/2022:13:55:32 +0800] - 200 200 - GET https my.domain.com "/login" [Client 192.168.0.1] [Length 5753] [Gzip -] [Sent-to nextcloud] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0" "-" Edited April 23, 2022 by Sat remove domain and typo Quote Link to comment
m0ngr31 Posted April 24, 2022 Share Posted April 24, 2022 21 hours ago, mgutt said: I enabled websockets for Plex and it works. Are you using an additional Proxy like cloudflare or do you have a proxified IPv4 address through your internet provider? No, I had to enable some custom nginx config for it to work in Jellyfin, but no other apps work by just toggling that option Quote Link to comment
Aquenon Posted May 4, 2022 Share Posted May 4, 2022 (edited) I can’t figure this out. I adjusted unRAID’s http/https ports so I could assign 80 and 443 to NPM (I also had the same problem before I changed this, but this is current configuration). My router has 80 and 443 forwarded correctly. If I type my domain in by itself, I get the NPM congratulations page. But if I put anything in front of it, such as unifi, plex, nginx, or www, I get ‘cannot open the page because cannot connect to server’. But all services are running. nginx forwards to port 81 and even when clicking the entry from within nginx on port 81, it still cannot connect to the server. I am using CloudFlare, but dns only, no proxy there. The entries are there. I use a wildcard, but I’ve added the explicit cname as well when trying to troubleshoot. With the wildcard there, no matter what I put in front of my domain, dig gives me the correct IP. I know this is the reason I get internal errors when requesting an SSL certificate. I just looked, and all settings for the container are the default you have it set to other than the ports actually being 80, 81, and 443 (unRAID’s GUI is now 60080 and 60443). The only thing different is the network is using the custom bridge everything else uses so I can refer to other containers by their name. I’m not doing that in NPM at the moment, I’m using actual IPs. But I have tried names and IPs, and still same issue. I just set it back to the default unRaid bridge to troubleshoot, still having the issue. I just know this is something simple given my luck, I just cannot figure out what it might be. Edited May 4, 2022 by Aquenon Quote Link to comment
mgutt Posted May 4, 2022 Author Share Posted May 4, 2022 2 hours ago, Aquenon said: cannot open the page because cannot connect to server This is a cloudflare error, correct? I think it's an usual error 500. This means npm is not able to reach the container. Please check the debug part of 5xx errors on the first page of this thread. Quote Link to comment
Aquenon Posted May 5, 2022 Share Posted May 5, 2022 (edited) On 5/4/2022 at 12:27 AM, mgutt said: This is a cloudflare error, correct? I think it's an usual error 500. This means npm is not able to reach the container. Please check the debug part of 5xx errors on the first page of this thread. It wasn’t a CloudFlare problem, though I double checked to be sure. I had already done steps 1-3 of your debug section, and step 4 worked as well, but it was your curl commands that led me to my problem. They worked just fine until I swapped the IPs with the URLs and suddenly I wasn’t getting any response. No codes, no anything, it was timing out. I went back to my app and it was working fine. Then digging into the app, I found that it had its own DNS settings and wasn’t using mine. When I forced it to mine, it started timing out as well, although every other URL worked just fine. I pulled out my phone and disabled WiFi so I was coming at it externally, and every site I set up in NPM worked perfect. Turns out my DNS server had a setting that wouldn’t allow my domain to be forwarded on to an upstream server. I turned that setting off, and everything works. I knew it was something simple, and thankfully your suggestion led me to it. Thank you! Edited May 5, 2022 by Aquenon Quote Link to comment
Mossshine Posted May 5, 2022 Share Posted May 5, 2022 Got fresh NPM running. I can see the default welcome page and login page, but when try to login using the default username and password, i get error "Bad Gateway" What am I doing wrong ? I am accessing it via the 192.168.1.4:81 Quote Link to comment
mgutt Posted May 6, 2022 Author Share Posted May 6, 2022 6 hours ago, Mossshine said: What am I doing wrong ? Are you using an external database for npm?! Quote Link to comment
Mossshine Posted May 6, 2022 Share Posted May 6, 2022 (edited) 1 hour ago, mgutt said: Are you using an external database for npm?! No, default settings, so that would be SQLite Edited May 6, 2022 by Mossshine Quote Link to comment
xxbryantd Posted May 6, 2022 Share Posted May 6, 2022 am i able to access NPM from a subdomain also? I cant seem to get it to work properly. Quote Link to comment
mgutt Posted May 7, 2022 Author Share Posted May 7, 2022 22 hours ago, Mossshine said: No, default settings, so that would be SQLite Try to reinstall and use the appdata cleanup plugin to delete the npm subdir. Quote Link to comment
mgutt Posted May 7, 2022 Author Share Posted May 7, 2022 14 hours ago, xxbryantd said: am i able to access NPM from a subdomain also? I use this target settings: http://localhost:81 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.