Is there a way to a IP Address rather than the hostname when sending analytic events?

I am sending Analytic Events to the milestone client using the SDK.

e.g. EnvironmentManager.Instance.SendMessage(new Message(MessageId.Server.NewEventCommand){Data = analyticsEvent });

This works fine when on a network which can resolve the hostname however if the application is on another network that can’t resolve the hostname then I get this error.

“There was no endpoint listening at http://win-luv3r9l7ub4:22331/Central/AlarmServiceToken that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.”

Is there a way to use IP Addresses rather than the hostname when sending analytic events? Also the application is running within a Windows Container.

Thanks

I would very much recommend that you set up DNS in your network.

Less recomended but works also; change the Registered Services so that the Event Server is listed with IP instead of hostname.

Thanks for the quick response. How do I change the ​Event Server to use IP instead of hostname?

Thanks

Change the Registered Services. In Management Client - Tools → Registered Services

Thanks a lot