tcpTrace Indigo Configuration

Say your service runs on port 50000:
 
1) Make no changes to your client
2) Set the "Listen port #" on tcpTrace to 50000
3) Set the "Destination Port #" on tcpTrace to 50001
 
On your service set a listenUri to port 50001 and add it to the endpoint
 
string url = "http://localhost:50000/Service";
Uri listenUri = new Uri("http://localhost:50001/Service");
ServiceHost serviceHost = new ServiceHost(typeof(YourService));
serviceHost.AddServiceEndpoint(
typeof(YourContract), new BasicHttpBinding(), url, listenUri);
 
You are done. You can get tcpTrace from Simon Fell
Filed under:

Comments

No Comments