?
Solved

.NET Remoting over random client ports

Posted on 2011-02-10
2
Medium Priority
?
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 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