DCOM Tunnel - WeOnlyDo Discussion board

DCOM Tunnel (General questions)

by rebus, Thursday, October 28, 2004, 16:33 (7329 days ago)

Hi,

I am trying to set up a tunnel that will be used by an app that connects to the server over DCOM. I can't set LocalPort to 135 because it is already listening on that port. The app has no way of setting different port for the DCOM connection to the server.

What can I do?

Also, I tried to forward local port 80 to remote host 80. It works fine if I set LocalAddress to 0.0.0.0 or 127.0.0.1, but not if I use my NIC's address 192.168.1.13. How come?

Regards,

Andreas

Re: DCOM Tunnel

by wodSupport, Thursday, October 28, 2004, 19:51 (7329 days ago) @ rebus

Rebus,

you cannot set 135 if it's already taken, and I don't see how to workaround it. Well, you can try to listen on 127.0.0.2 or 127.0.0.3 etc.. these are not taken and also represent your computer.

As for 192.168.1.13, I cannot be sure about this. Are you 100 correct this is your IP at the time? Can you paste your code?

Re: DCOM Tunnel

by rebus, Friday, October 29, 2004, 08:55 (7329 days ago) @ wodSupport

Like this:

Channel httpChannel = sshTunnel1.Channels.Add( , , , , );
httpChannel.Type = ForwardTypesEnum.LocalListen;
httpChannel.LocalAddress = 192.168.1.13 ;
httpChannel.LocalPort = 80;
httpChannel.RemoteAddress = 192.168.1.21 ;
httpChannel.RemotePort = 80;

/rebus

Re: DCOM Tunnel

by wodSupport, Sunday, October 31, 2004, 02:05 (7327 days ago) @ rebus

It works for me for exactly same code.

One possible question: are you sure 192.168.1.21 is accessible from SSH server you're connecting to? Don't forget - RemoteAddress should be as *as seen by the server*, not as seen by you.