Steeltoe icon indicating copy to clipboard operation
Steeltoe copied to clipboard

register instanceid host in iis inprocess model

Open akaxb opened this issue 5 years ago • 4 comments

Describe the bug

A clear and concise description of the bug.
when my asp.net core 3.1 app host in IIS, the url console is 127.0.0.1,so,when i have Multiple instances,the instances name will be the same,such as 127.0.0.1:svaname:port,eureka server think they are a single instance. i print the console in source code: image image image

akaxb avatar Dec 10 '20 09:12 akaxb

Since this bug is not assigned yet I want to contribute its fix. Can we discuss?

ZuraizAhmedShehzad avatar Apr 03 '23 17:04 ZuraizAhmedShehzad

Hi @ZuraizAhmedShehzad,

You're welcome to take a look at this issue, but I'm not confident it really is a "good first issue" for somebody new to Steeltoe as it could need to relate to other issues like this one or this one and there is the potential complexity with setting up an environment to replicate the issue. Happy to help work through it if you are still up for it after those considerations!

If you would prefer something a little more approachable to get started, please consider this issue with endpoint mappings and know that we would also greatly appreciate some basic validation and potential enhancements of the quick start guides or documentation, such as this issue for service discovery guides

TimHess avatar Apr 04 '23 22:04 TimHess

Hi @ZuraizAhmedShehzad,

You're welcome to take a look at this issue, but I'm not confident it really is a "good first issue" for somebody new to Steeltoe as it could need to relate to other issues like this one or this one and there is the potential complexity with setting up an environment to replicate the issue. Happy to help work through it if you are still up for it after those considerations!

If you would prefer something a little more approachable to get started, please consider this issue with endpoint mappings and know that we would also greatly appreciate some basic validation and potential enhancements of the quick start guides or documentation, such as this issue for service discovery guides

Thanks for suggestion Tim. Since I was looking for a good first issue I am looking into the one you have suggested. Thanks !

ZuraizAhmedShehzad avatar Apr 05 '23 09:04 ZuraizAhmedShehzad

@akaxb,

Are you still experiencing this issue? Are you able to provide a more complete repro (what are the multiple registrations) so we can better understand the use case? We need to understand how to setup IIS in order to reproduce this so that we can reason about it

TimHess avatar Feb 27 '24 15:02 TimHess

Given the original timing on this issue, I am going to assume that this was using Eureka. As such, the solution is to set Eureka:Instance:RegistrationMethod to HostName so that the hostname will be used for the Uri rather than the IP address being a factor at all. I'm closing the issue with the assumption that fixes the problem, if you are still in need of a resolution please open a new issue

TimHess avatar Mar 28 '24 20:03 TimHess