I have a WCF service serving image per request. Accessing the service via localhost is fast but accessing through ip or domain address (as other clients will) is very slow. Images are approximately 1MB in size.
Any thoughts?
I have a WCF service serving image per request. Accessing the service via localhost is fast but accessing through ip or domain address (as other clients will) is very slow. Images are approximately 1MB in size.
Any thoughts?
Data transfer rates at localhost will be crazy-fast compared to transfer rates over the internets. Have you timed the transfers and computed the expected duration per the bandwidth available? A 1MB file download at localhost will happen faster than you can blink, but it will take a few seconds from a low-bandwidth connection (if the endpoint from which you are getting the file is 500Kb/s up).
Here is a bandwidth/transfer time calculator - Hope this helps you narrow down the cause of the problem!
Editing hosts file fixed the problem. The solution was to comment out ipv6 definition:
# ::1 localhost