2 Answers
- Newest
- Most votes
- Most comments
0
Im guessing you get the container ip and not the host it’s running on?
Is this similar to https://groups.google.com/g/nomad-tool/c/S-MS5sbmzJ0?pli=1
If not you will never get the host IP until It’s deployed is it will be deployed in a cluster.
0
Hello, Do you have all the prerequisites that Consul requires?
https://developer.hashicorp.com/consul/docs/ecs/requirements
answered a year ago
Yes, Finally solved problem, thanks your time
Relevant content
- asked 2 years ago
- asked 4 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
Sorry for the late reply, I just find a way to solve this. By using Dns.GetHostEntry(Dns.GetHostName()).AddressList.First(), it can easily get the private IP address of server. At first, I use toString() rather than first().but finally it works. Thank you Again.!!