proxy with authentication when remoting.

  • Thread starter Thread starter Tau
  • Start date Start date
T

Tau

I am doing remoting to an object hosted in IIS. I Set up
my remote object like this:
**************************************************
Dim channel As New _
System.Runtime.Remoting.Channels.Http.HttpClientChannel

RemoteObject = CType(Activator.GetObject(GetType
(Ipps2cb), "http://*.*.*.*/RemotingServer/ExecSP.rem"),
Ipps2cb)
***************************************************

It works fine when I use the object, but i need to be
able to use it through a Proxy Server/Firewall that uses
authentication.

When using a web-service, I can set up the proxy property
of my web-service object and use a system.net.webproxy
with a system.net.ICredentials containing the username
and password (as well as proxy address and port).

But how do I do the same with a remoting object??

I'm really stuck.
 
Hello Tau,

Currently I am performing research on it and will reply you ASAP here. By the way, you could also post remoting related
questions to Dotnet.Framework.Remoting group.

Thanks very much.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Tau" <[email protected]>
!Sender: "Tau" <[email protected]>
!Subject: proxy with authentication when remoting.
!Date: Thu, 31 Jul 2003 01:17:11 -0700
!Lines: 23
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNXPCRYUkmgNQauQf+TF7zvaWZiPw==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:50213
!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!I am doing remoting to an object hosted in IIS. I Set up
!my remote object like this:
!**************************************************
!Dim channel As New _
!System.Runtime.Remoting.Channels.Http.HttpClientChannel
!
!RemoteObject = CType(Activator.GetObject(GetType
!(Ipps2cb), "http://*.*.*.*/RemotingServer/ExecSP.rem"),
!Ipps2cb)
!***************************************************
!
!It works fine when I use the object, but i need to be
!able to use it through a Proxy Server/Firewall that uses
!authentication.
!
!When using a web-service, I can set up the proxy property
!of my web-service object and use a system.net.webproxy
!with a system.net.ICredentials containing the username
!and password (as well as proxy address and port).
!
!But how do I do the same with a remoting object??
!
!I'm really stuck.
!
 
Helo Yanhong.

Thank's for the reply!

I've been digging a little for some answars. Could it be
as simple as this?

------------------------------------------------
channel.Properties.Item("proxyName") = "*.*.*.*"
channel.Properties.Item("proxyPort") = "8080"
channel.Properties.Item("Domain") = ""
channel.Properties.Item("UserName") = "user"
channel.Properties.Item("Password") = "pass"
------------------------------------------------

or this (to setup defalut proxy and let the channel use
that automatically):

-------------------------------------------------
Dim wproxy As New System.Net.WebProxy("*.*.*.*", 8080)
Dim wpcredentials As New System.Net.NetworkCredential
("user, "pass")
wproxy.Credentials = wpcredentials
System.Net.GlobalProxySelection.Select = wproxy
--------------------------------------------------

It compiles, but the problem for me is that I can't
really test it. I have no proxy server.

The dotnet.framework.remoting group is not available via
the msdn newsgroups (not where I login anyway), but in
the future I'll use developersdex.com.

-----Original Message-----
Hello Tau,

Currently I am performing research on it and will reply
you ASAP here. By the way, you could also post remoting
related
 
Hello Tau,

hmmm. It doesn't seems so simple.

Please refer to this link by Ingo Rammer.
http://www.dotnet247.com/247reference/msgs/24/121346.aspx

Anyway, I am researching on it and may get some confirmation later. Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Tau" <[email protected]>
!Sender: "Tau" <[email protected]>
!References: <[email protected]> <[email protected]>
!Subject: RE: proxy with authentication when remoting.
!Date: Mon, 4 Aug 2003 01:24:57 -0700
!Lines: 105
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNaYeP7J//F/N0+T92JIwsnM+k9CA==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:50452
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Helo Yanhong.
!
!Thank's for the reply!
!
!I've been digging a little for some answars. Could it be
!as simple as this?
!
!------------------------------------------------
!channel.Properties.Item("proxyName") = "*.*.*.*"
!channel.Properties.Item("proxyPort") = "8080"
!channel.Properties.Item("Domain") = ""
!channel.Properties.Item("UserName") = "user"
!channel.Properties.Item("Password") = "pass"
!------------------------------------------------
!
!or this (to setup defalut proxy and let the channel use
!that automatically):
!
!-------------------------------------------------
!Dim wproxy As New System.Net.WebProxy("*.*.*.*", 8080)
!Dim wpcredentials As New System.Net.NetworkCredential
!("user, "pass")
!wproxy.Credentials = wpcredentials
!System.Net.GlobalProxySelection.Select = wproxy
!--------------------------------------------------
!
!It compiles, but the problem for me is that I can't
!really test it. I have no proxy server.
!
!The dotnet.framework.remoting group is not available via
!the msdn newsgroups (not where I login anyway), but in
!the future I'll use developersdex.com.
!
!
!>-----Original Message-----
!>Hello Tau,
!>
!>Currently I am performing research on it and will reply
!you ASAP here. By the way, you could also post remoting
!related
!>questions to Dotnet.Framework.Remoting group.
!>
!>Thanks very much.
!>
!>Best regards,
!>Yanhong Huang
!>Microsoft Online Partner Support
!>
!>Get Secure! - www.microsoft.com/security
!>This posting is provided "AS IS" with no warranties, and
!confers no rights.
!>
!>--------------------
!>!Content-Class: urn:content-classes:message
!>!From: "Tau" <[email protected]>
!>!Sender: "Tau" <[email protected]>
!>!Subject: proxy with authentication when remoting.
!>!Date: Thu, 31 Jul 2003 01:17:11 -0700
!>!Lines: 23
!>!Message-ID: <[email protected]>
!>!MIME-Version: 1.0
!>!Content-Type: text/plain;
!>! charset="iso-8859-1"
!>!Content-Transfer-Encoding: 7bit
!>!X-Newsreader: Microsoft CDO for Windows 2000
!>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!>!Thread-Index: AcNXPCRYUkmgNQauQf+TF7zvaWZiPw==
!>!Newsgroups: microsoft.public.dotnet.framework
!>!Path: cpmsftngxa06.phx.gbl
!>!Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework:50213
!>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!>!X-Tomcat-NG: microsoft.public.dotnet.framework
!>!
!>!I am doing remoting to an object hosted in IIS. I Set
!up
!>!my remote object like this:
!>!**************************************************
!>!Dim channel As New _
!>!System.Runtime.Remoting.Channels.Http.HttpClientChannel
!>!
!>!RemoteObject = CType(Activator.GetObject(GetType
!>!(Ipps2cb), "http://*.*.*.*/RemotingServer/ExecSP.rem"),
!>!Ipps2cb)
!>!***************************************************
!>!
!>!It works fine when I use the object, but i need to be
!>!able to use it through a Proxy Server/Firewall that
!uses
!>!authentication.
!>!
!>!When using a web-service, I can set up the proxy
!property
!>!of my web-service object and use a system.net.webproxy
!>!with a system.net.ICredentials containing the username
!>!and password (as well as proxy address and port).
!>!
!>!But how do I do the same with a remoting object??
!>!
!>!I'm really stuck.
!>!
!>
!>
!>.
!>
!
 
Hello Tau,

After talking with our Remoting support engineer, we all agree that Ingo is correct. Currently we cannot do that with
HttpChannel. But tcpchannel supports proxy authentication.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Tau" <[email protected]>
!Sender: "Tau" <[email protected]>
!References: <[email protected]> <[email protected]>
!Subject: RE: proxy with authentication when remoting.
!Date: Mon, 4 Aug 2003 01:24:57 -0700
!Lines: 105
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNaYeP7J//F/N0+T92JIwsnM+k9CA==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:50452
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Helo Yanhong.
!
!Thank's for the reply!
!
!I've been digging a little for some answars. Could it be
!as simple as this?
!
!------------------------------------------------
!channel.Properties.Item("proxyName") = "*.*.*.*"
!channel.Properties.Item("proxyPort") = "8080"
!channel.Properties.Item("Domain") = ""
!channel.Properties.Item("UserName") = "user"
!channel.Properties.Item("Password") = "pass"
!------------------------------------------------
!
!or this (to setup defalut proxy and let the channel use
!that automatically):
!
!-------------------------------------------------
!Dim wproxy As New System.Net.WebProxy("*.*.*.*", 8080)
!Dim wpcredentials As New System.Net.NetworkCredential
!("user, "pass")
!wproxy.Credentials = wpcredentials
!System.Net.GlobalProxySelection.Select = wproxy
!--------------------------------------------------
!
!It compiles, but the problem for me is that I can't
!really test it. I have no proxy server.
!
!The dotnet.framework.remoting group is not available via
!the msdn newsgroups (not where I login anyway), but in
!the future I'll use developersdex.com.
!
!
!>-----Original Message-----
!>Hello Tau,
!>
!>Currently I am performing research on it and will reply
!you ASAP here. By the way, you could also post remoting
!related
!>questions to Dotnet.Framework.Remoting group.
!>
!>Thanks very much.
!>
!>Best regards,
!>Yanhong Huang
!>Microsoft Online Partner Support
!>
!>Get Secure! - www.microsoft.com/security
!>This posting is provided "AS IS" with no warranties, and
!confers no rights.
!>
!>--------------------
!>!Content-Class: urn:content-classes:message
!>!From: "Tau" <[email protected]>
!>!Sender: "Tau" <[email protected]>
!>!Subject: proxy with authentication when remoting.
!>!Date: Thu, 31 Jul 2003 01:17:11 -0700
!>!Lines: 23
!>!Message-ID: <[email protected]>
!>!MIME-Version: 1.0
!>!Content-Type: text/plain;
!>! charset="iso-8859-1"
!>!Content-Transfer-Encoding: 7bit
!>!X-Newsreader: Microsoft CDO for Windows 2000
!>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!>!Thread-Index: AcNXPCRYUkmgNQauQf+TF7zvaWZiPw==
!>!Newsgroups: microsoft.public.dotnet.framework
!>!Path: cpmsftngxa06.phx.gbl
!>!Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework:50213
!>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!>!X-Tomcat-NG: microsoft.public.dotnet.framework
!>!
!>!I am doing remoting to an object hosted in IIS. I Set
!up
!>!my remote object like this:
!>!**************************************************
!>!Dim channel As New _
!>!System.Runtime.Remoting.Channels.Http.HttpClientChannel
!>!
!>!RemoteObject = CType(Activator.GetObject(GetType
!>!(Ipps2cb), "http://*.*.*.*/RemotingServer/ExecSP.rem"),
!>!Ipps2cb)
!>!***************************************************
!>!
!>!It works fine when I use the object, but i need to be
!>!able to use it through a Proxy Server/Firewall that
!uses
!>!authentication.
!>!
!>!When using a web-service, I can set up the proxy
!property
!>!of my web-service object and use a system.net.webproxy
!>!with a system.net.ICredentials containing the username
!>!and password (as well as proxy address and port).
!>!
!>!But how do I do the same with a remoting object??
!>!
!>!I'm really stuck.
!>!
!>
!>
!>.
!>
!
 
Back
Top