Solved

.NET Remoting over random client ports

Posted on 2011-02-10
2
392 Views
Last Modified: 2012-06-21
I have an application that was written using remoting.  There is a remoting service that gets installed on the server (which has all the business code to access the database, etc) and a client GUI which is compiled with "stubs" to the business code.  When the client is run, the remoting piece connects it to the proper business code in the remoting service.  This all works great, however, it was designed using set ports.  Both client GUI and remoting service are configured to use port 8089 (why that port was chosen, I don't know).  Anyway, I have read a bit on the internet that leads me to beleive that the port on the client side can be random, but I'm not sure, given our application, how to make that happen.  The problem is that you can only run ONE client on ONE machine at a time because it uses a set port.  We want to be able to run multiple clients on the same machine.

I am hoping that to accomplish the client random port, I can simply make a config change and walla!  I have attached the config file for the client and the config file for the remoting service.  Can you tell me whether this can be accomplished with a simple config change and if so, what I would change in my config files to make that happen?
Thanks!
RemotingDefinition.config
PMRCM.RemotingServer.config
0
Comment
Question by:ablesa
  • 2
2 Comments
 

Accepted Solution

by:
ablesa earned 0 total points
ID: 35233318
I resolved this myself by setting the port to 0 in the client configuration file:
<channel ref="tcp" port="0">
0
 

Author Closing Comment

by:ablesa
ID: 35233321
No one else answered and I found the answer on my own.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now