VelcroBP Posted April 14, 2022 Share Posted April 14, 2022 I'm trying to self-host a discord bot. I am using the instructions on their Dockerhub page. I am able to map the correct paths and have the config.yml file updated with my variables. However, I don't seem to have the port/address mapping correct, as it will not connect. In the container log it just keeps repeating an error like "bind: cannot assign requested address". Is this a simple misconfiguration that I can correct? Or have I bit off more than I can chew in terms of setting this up with my lack of Docker knowledge? Attached are the unRaid container log, the HTTP snippet of my config.yml, and the status from the unRaid Docker tab Quote Link to comment
Ford Prefect Posted April 14, 2022 Share Posted April 14, 2022 ...that IP address looks like one from your local LAN? Then use a custom.bridge/br0 for your network in the docker setting and set the desired IP accordingly. Quote Link to comment
VelcroBP Posted April 14, 2022 Author Share Posted April 14, 2022 I got it to work by setting it to listen to the 172.xxx domain in the config.yml, and then set up my cloudflare/Nginx to point to the server's port on the 192.xxx. Quote Link to comment
Squid Posted April 14, 2022 Share Posted April 14, 2022 21 minutes ago, VelcroBP said: 172.xxx Will it work if you have it listen at 127.0.0.1? The 172 address can and do change based upon startup order etc. Quote Link to comment
VelcroBP Posted April 14, 2022 Author Share Posted April 14, 2022 26 minutes ago, Squid said: Will it work if you have it listen at 127.0.0.1? The 172 address can and do change based upon startup order etc. I'll keep that in mind and maybe test after a reboot. I did move it into a folder and down in the boot order and it is still working. Quote Link to comment
VelcroBP Posted April 17, 2022 Author Share Posted April 17, 2022 Will it work if you have it listen at 127.0.0.1? The 172 address can and do change based upon startup order etc.After a reboot it was indeed assigned another 172. I changed the bind to 127.0.0.1 as suggested and it's working great! thanks again!Sent from my Pixel 5 using Tapatalk 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.