Specifying ClientChannel outbound communication Port

Hey All,

Hopefully someone can help here, I have yet to find a solution to my problem.

I am using .net remoting in the 2.0 framework. Everything works fine, but I want to be able to specify what port my client app uses to send messages to my server.

Through some digging around I found out about the IDictionary object that the 'server' can use to specify port and proxyPort, but I need to do this for my clientchannel.

I am using HttpClientChannel, and HttpServerChannel.

I know someone here can help, the force is strong in this channel :)

Brent

[562 byte] By [BrentLak] at [2007-12-17]
# 1

We use WebRequest in the client channel.

I'll move this thread to the System.Net forum to see if they have an answer.

douglasp at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 2

No this is not a system.net issue. This is remoting issue

Please follow up with those forums.

DurgaprasadGorti at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 3
See ServicePoint.BindIPEndPointDelegate. You may be able to set the local endpoint this way. The easiest way to get the ServicePoint is through the ServicePoint property on the HttpWebRequest class noted by douglasp above. I'm not sure how one can obtain a reference to that object from their remoting application - this would be a question for the remoting forums.
MikeFlasko at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified