Search code examples
wcflan

wsDualHttpBinding works on LAN but doesn't work on internet


I have a wcf simple program that use wsDualHttpBinding. I put my server.exe on another computer (on my LAN network) and called a method via client. callback successfully called at client. Then I put my server.exe on my VPS server (on Internet) and run client.exe, client throws TimeoutException. I use 9090 port for server listening. Also I turn off firewall on both side.

what's wrong? please help, it's going me crazy.

EDIT: Do both server and client need valid IP address?


Solution

  • The problem has solved!

    In duplex connections, both client and server need valid ip address. I changed connection way. I used netTcp.

    anyway tnx everyone.