Solved

.NET Remoting over random client ports

Posted on 2011-02-10
2
397 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

832 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