D
D
Denetor132017-09-11 18:48:56
.NET
Denetor13, 2017-09-11 18:48:56

How to bind endpoint to global IP or IPv6 in WCF?

Hello. I am learning WCF skills, and now I am analyzing an example, just a service (whose host is a console). So in the example, the address was specified through localhost (http binding), everything works without problems. But I would like to set (as you can see in the question) not a local host, but explicitly bind to IPv6 or global IP, when I try to do this in the first case, the host throws an exception (I can’t use IPv6), and in the case of a global IP, the console starts , and the service is not registered, so I can't set up a config on the client to connect. I can specify IPv4 and everything works perfectly, but it changes with each restart of the machine, so this is not an option. Can you please tell me how to bind? I do all this so that the client and host are on different machines.
UPDATE:
I tried it through IPv4 and IPv6 (there you just need to take this address in [], it works on one local machine, but not on different machines. Either this is a system administration issue, or this is already due to a lack of understanding of WCF technology. In general, I have options ran out, I raise the white flag and hope that someone will help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denetor13, 2017-09-11
@Denetor13

Well, in general, after reading some posts on Google about a similar topic, I understand that I first need to post the service in IIS and then try to do it on different machines. Although it remains a mystery to me why it does not work if the host is a normal console application. Tomorrow, in general, I will probyvat, can anyone even write about this. Firewall passes requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question