I have a WCF service using basicHttpBinding.
When the client and server are on the same network, their initial call hangs for about 30 seconds, than it goes smoothly.
When I make the same call from a client over the Internet with DNS, it works well without hanging.
The client and server are console applications. The server is running Windows 7, and the problematic client is running Windows Server 2008. Both computers on the same network use their local security policies, so there is no domain controller.
Disabling all firewalls and antiviruses did not solve my problem.
This is a magazine with installation next to each other.
09:33:05,252 [1] DEBUG ChannelFactoryManager: Created ClientChannel http://192.168.1.11:18762/DiagnosticService 09:33:05,263 [1] INFO Program: WcfAppender.InitializeWcfAppender: 08:33:05 09:33:05,274 [1] INFO Program: File.Copy(C:temptest.txt, O:test.txt, true): 08:33:05 09:33:05,298 [1] INFO Program: GETTING DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:33:05 09:33:32,661 [1] INFO Program: GOT DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:33:32 09:33:32,668 [1] INFO Program: GETTING DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:33:32 09:33:32,680 [1] INFO Program: GOT DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:33:32 09:33:32,693 [1] INFO Program: File.Copy(C:temptest.txt, O:test.txt, true): 08:33:32
This is a log when I delete the same server over the Internet from different networks (without delay):
09:36:56,500 [1] DEBUG ChannelFactoryManager: Created ClientChannel http://mydomain.com:18762/DiagnosticService 09:36:56,501 [1] INFO Program: WcfAppender.InitializeWcfAppender: 08:36:56 09:36:56,501 [1] INFO Program: File.Copy(C:temptest.txt, O:test.txt, true): 08:36:56 09:36:56,501 [1] INFO Program: GETTING DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:36:56 09:36:56,680 [1] INFO Program: GOT DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:36:56 09:36:56,680 [1] INFO Program: GETTING DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:36:56 09:36:56,705 [1] INFO Program: GOT DomainFactory.LoggingDiagnosticService.GetMonitoringLevel: 08:36:56
I also tried copying the test.txt file between the fields to find out if I am getting the same connection problem for