Make WCF available online

I made a WCF service. I want the client to have access to it from anywhere. How can i do this? Details:

  • I want it to be hosted in a Windows process, not a site.
  • I am using TCP binding.
  • I know almost nothing about web hosting, etc.
  • It is advisable not to use IIS ...

I found many recommendations on the Internet, but still do not understand everything. Please tell us how to do this in more detail ...

As I understand it, it is necessary to make global for the endpoint. I configured port forwarding in my router to port 8000, but ... what next? What address should I enter as the endpoint address? Now it is localhost: 8000.

+3
source share
6

IP- , . , , .

WCF , :

  • Host: net.tcp://localhost: portnum/servicename
  • : net.tcp://publicipORdomainname: portnum/servicename

, . , . , IP- . , , IP-.

+3

IIS, , .

, WCF, ( -, Apache IIS).

-, , .

http://www.diywebserver.com/

, , Apache, ( WCF).

+1

SO, . com. .

0

IP- . Windows.

0

localhost: 8000, . .

IP- .

0

IIS - ,

SearchServiceLibrary

ISearch

, ISearch

1: NAT, PORT, , -.

-2: /IP- WSDL

app.config

 <serviceMetadata httpGetEnabled="True" httpGetUrl="http://DomainName_OR_IPAddress:PORT/SearchServiceLibrary.Search.svc/basic"/>

3: app.config

app.config, EDIT WCF CONFIGURATIONS

<service name="SearchServiceLibrary.Search">
                <endpoint    address="http://DomainName_OR_IPAddress:PORT/SearchServiceLibrary.Search.svc/basic"   binding="basicHttpBinding"
          contract="SearchServiceLibrary.ISearch">
          <identity>
            <dns value="localhost" />
          </identity>
    </endpoint>

EDIT WCF CONFIGURATIONS

enter image description here .

0

Source: https://habr.com/ru/post/1734479/


All Articles