Oracle Cloud / Amazon Lightsail: "bind cannot assign requested address 8025"
At first glance, this error can be misinterpreted to make you think it means a PORT is already in use.
Your VPS has a hidden private IP address only you can see.
This is similar to how your home Wi-Fi network has a different IP network, commonly 192.168.0.x, which is proxied through your broadband internet router.
For the ESP platform to start successfully, it needs to know the private IP address configured in Ubuntu, not the internet-facing IP address you used to connect to your server with SSH.
You can't use the 0.0.0.0 method if you plan on using Velocity MTA on this server.
View the contents of the file with the cat command:
You can do any of the following to correct this issue:
Change PLATFORM_IP to 0.0.0.0 (Can't do this if running Velocity MTA on this server)
Use the 'nano' command to edit this file:
nano config/edcom.env
Delete config/edcom.env with the rm command, which will cause 0.0.0.0 to be used automatically (Can't do this if running Velocity MTA on this server)
rm config/edcom.env
Figure out what your private IP address is in Ubuntu and change PLATFORM_IP to that IP address
Use the ip command to see your private IP addresses:
ip a
Look for output similar to this:
You might also be shown your private IP addresses as part of the MOTD (message of the day) when you log in:
What to do when you have multiple private IP addresses on the same VPS
If you're planning on using Velocity MTA or any other applications on this VPS side by side with your ESP platform, you're going to need to know which public internet-facing IP address each of your private IP addresses is being proxied to.
Use the 'curl' command to find your "real" IP by initiating a connection from your private IP to a compatible website that reveals your public IP:
# curl --interface 10.0.0.246 icanhazip.com
144.24.125.61
# curl --interface 10.0.0.128 icanhazip.com
144.24.125.186
# curl --interface 10.0.0.42 icanhazip.com
144.24.125.167
# curl --interface 10.0.0.231 icanhazip.com
144.24.125.150
# curl --interface 10.0.0.82 icanhazip.com
129.159.125.34
Restart the platform after you've made any changes toconfig/edcom.env
Last updated
Was this helpful?