0
votes

I have a wcf service (with net.tcp binding) hosted at windows service and a wpf client. when I run the service in a server outside the company's domain it works excellent, the problem is when I host the service in a server inside the company's domain, and try to run the wpf app in a client outside of the company domain. I'm getting the same error, "The Socket connection was aborted..." I try with Security Mode None, Transport and the same result. My question is, what is the correct way to do that? I mean host the wcf net TCP service in a domain server and call it from a client outside of domain?

Thanks a lot!

2
Are you sure your corporate firewall allows arbitrary clients to call into your network directly?nvoigt
Yes, the other network is a process network. The server have access to the corporate network and the process network as well.Guaronet

2 Answers

1
votes

I change the binding from net.tcp to wshttp and the service works fine! Server with the corporate domain and client without corporate domain The thing is I need the make this work with net.tcp

0
votes

Neither a Windows Domain nor DNS have anything to do with WCF/TCP if you don't explicitly make it so.

Assuming the address you gave actually leads to the PC you host your service on (so no local IP addresses) and nothing in between (like a firewall) blocks the connection, it should work.

The correct way is to make sure client and server can talk to each other. If it's different networks, you will need NAT and if one is a corporate network I'd be very surprised to see no firewall that you need to configure.

As a first step, try to ping your target machine from your client machine.