Solved

.NET Remoting over random client ports

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
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 …

831 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