DCOM Tunnel (General questions)
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
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
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
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.