port forwarding and vnc - WeOnlyDo Discussion board

port forwarding and vnc (wodVPN)

by dan901, Tuesday, May 06, 2008, 20:42 (5835 days ago)

Question concerning port forwarding and vnc using wodVPN. I'm able to use wodVPN connection to setup and configure the port forwarding and utilize vnc without any problems. It works great. My only question is about performance. When doing something intensive over the wodVPN connection, it seems slow. Even between two pc's on the same LAN. Doing via the forwarded ports is much slower than just connecting vnc directly between the two computers.

Are there any optimization tips when doing port forwarding with wodVPN, or is this just the nature of the beast?

Thanks!

Re: port forwarding and vnc

by wodSupport, Tuesday, May 06, 2008, 20:44 (5835 days ago) @ dan901

Dan,

if it's just slow then we should see on improving it. wodVPN implements 'reliable udp' protocol and this could be what causes possible slowness. Let us try to see how good/bad it is to see if it can be improved.

You do use latest version, right?

Kreso

Re: port forwarding and vnc

by dan901, Tuesday, May 06, 2008, 20:51 (5835 days ago) @ wodSupport

I'm using 1.2.4.69

Re: port forwarding and vnc

by wodDamir, Tuesday, May 06, 2008, 21:47 (5835 days ago) @ dan901

Dan,

Could you please update to the latest version and try it out?

I'm not sure if we worked on speed improvement in it, but we really need to make sure that the same happens in current version too.

If the same issue still occurs, we will certainly take a look at it, and try to resolve it.

Regards,
Damba

Re: port forwarding and vnc

by dan901, Tuesday, May 06, 2008, 21:56 (5835 days ago) @ wodDamir

According to your website, 1.2.4 is the latest version.

Re: port forwarding and vnc

by wodDamir, Tuesday, May 06, 2008, 22:11 (5835 days ago) @ dan901

Dan,

The website only displays 3 version numbers, but the whole numbering contains 4 numbers. Minor version isn't displayed there.

1.2.4.70 is current version. Can you please try it out?

Regards,
Damba

Re: port forwarding and vnc

by dan901, Wednesday, May 07, 2008, 21:52 (5834 days ago) @ wodDamir

I'm now using version .70

Oddly enough there seems to be a difference between 69 and 70. It seems to be a little faster now. Still not as fast as a direct connection outside of wodVPN, but better. Was something optimized in 70?

I'd still be interested to know of anything I can do from my level to optimize the connection to speed it up a bit. Property settings, etc... if you guys play with it.

Thanks!

Re: port forwarding and vnc

by woddrazen, Wednesday, May 07, 2008, 21:57 (5834 days ago) @ dan901

Hi Dan,


You can play with MTU Property.

More help for MTU Property you can find here:
http://www.weonlydo.com/VPN/Help/WODVPNLib~wodVPN~MTU.html


Drazen

Re: port forwarding and vnc

by dan901, Thursday, May 08, 2008, 23:11 (5833 days ago) @ woddrazen

I added some MTU stuff. I'll give this a go for a while and see how it works out.

<connected>
FindMTU(20)

<FindMTUDone>
wodObj.MTU = MTU - 20;

port forwarding and vnc

by Alok, Monday, May 26, 2008, 11:28 (5815 days ago) @ dan901

I have one problem, i have create a channel using port forwarding. It says channel started . After that when i connect the redirected(Local) port, the sample application shows user connecting after that user disconnected . Its not working.

Any idea please.

Thanks

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 12:13 (5815 days ago) @ Alok

Hi Alok,


Do you have some firewall maybe? If you do can you maybe disable it and try it again?

If that doesn't help can you maybe show us your Channels Add line (wodVPN1.Channels.Add...)? Did you try using our samples?

Please also make sure that you are using latest 1.2.4.70 version of wodVPN. wodVPN Version Property hold version number.

Let us know how it goes.


Regards,
Drazen

Re: port forwarding and vnc

by Alok, Monday, May 26, 2008, 12:34 (5815 days ago) @ woddrazen

Thanks for quick reply.
I am using wod sample for it. Both the PC's are on different NAT. When i try to connect the sample shows connecting. after disconnected . I have disabled all the firewalls.
But having same problem.

channels.Add(0 /* TCPLocalListen */, m_LocalIP, m_LocalPort, m_RemoteIP, m_RemotePort);

is the code.

Hi Alok,


Do you have some firewall maybe? If you do can you maybe disable it and try it again?

If that doesn't help can you maybe show us your Channels Add line (wodVPN1.Channels.Add...)? Did you try using our samples?

Please also make sure that you are using latest 1.2.4.70 version of wodVPN. wodVPN Version Property hold version number.

Let us know how it goes.


Regards,
Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 12:36 (5815 days ago) @ Alok

Alok,


Can you please give us values of: m_LocalIP, m_LocalPort, m_RemoteIP and m_RemotePort variable


Drazen

Re: port forwarding and vnc

by Alok, Monday, May 26, 2008, 12:45 (5815 days ago) @ woddrazen

thanks for replay.

I have set m_LocalIP = 127.0.0.1, m_LocalPort = 1200, m_RemoteIP = wodvpn returned IP and m_RemotePort to 27000 which the another application using and to which i want to connect.

Alok,


Can you please give us values of: m_LocalIP, m_LocalPort, m_RemoteIP and m_RemotePort variable


Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 12:51 (5815 days ago) @ Alok

Alok,


What happened when you change m_RemoteIP to:

127.0.0.1

all other information seems to be correct.

Also did you check version of wodVPN?


Drazen

Re: port forwarding and vnc

by Alok, Monday, May 26, 2008, 13:00 (5815 days ago) @ woddrazen

Actually server is running on different machine. Is version is also resposible for that.

Alok,


What happened when you change m_RemoteIP to:

127.0.0.1

all other information seems to be correct.

Also did you check version of wodVPN?


Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 13:05 (5815 days ago) @ Alok

Alok,


Yes of course it support it. 127.0.0.1 address is local address of remote machine.


Drazen

Re: port forwarding and vnc

by Alok, Monday, May 26, 2008, 13:09 (5815 days ago) @ woddrazen

If returnrd IP is 122.164.2.43 and the remote third party application's port is 27000. Then What should i pass to Add method.

Alok,


Yes of course it support it. 127.0.0.1 address is local address of remote machine.


Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 13:26 (5815 days ago) @ Alok

Alok,


Please try this:
[code]wodVPN1.channels.Add(0, 127.0.0.1 , 1200, 127.0.0.1 ,27000);[/code]
Drazen

Re: port forwarding and vnc

by ALOK, Monday, May 26, 2008, 13:34 (5815 days ago) @ woddrazen

It is not working. Even in same machine.

it says USERCONNECTING and then USERDISCONNECTED.

Thanks.

Alok,


Please try this:
[code]wodVPN1.channels.Add(0, 127.0.0.1 , 1200, 127.0.0.1 ,27000);[/code]
Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 13:39 (5815 days ago) @ ALOK

Alok,


Can you explain me please your statement: Even in same machine. ?

I have already mention that second 127.0.0.1 is remote local IP address. So using my code you will redirect port 27000 from 122.164.2.43 to your local 127.0.0.1 IP on port 1200.

Did you try that or you try sample locally (both sides on same machine).


Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 13:40 (5815 days ago) @ woddrazen

Alok,


... also please send us output form wodVPN Version Property

[code]MsgBox wodVPN1.Version[/code]
Drazen

Re: port forwarding and vnc

by Alok, Monday, May 26, 2008, 13:57 (5815 days ago) @ woddrazen

Version: 1.2.4.70

It is on Nat So it sends the IP of router. like 122.160.21.194 while the pc in on private lan 192.x.x.x series.

Alok,


... also please send us output form wodVPN Version Property

[code]MsgBox wodVPN1.Version[/code]
Drazen

Re: port forwarding and vnc

by woddrazen, Monday, May 26, 2008, 15:55 (5815 days ago) @ Alok

Alok,


I'm still not sure that you understand me fully what should you try. Let me try to explain it once more.

When you are creating cwodVPN channel you are using this variable: m_LocalIP, m_LocalPort, m_RemoteIP, m_RemotePort

m_LocalIP is local machine IP where wodVPN should create channel and m_LocalPort is port where channel should be created.

m_RemoteIP should be remote machine IP address but actually local IP address of remote machine where in your case your VNC server is.

So m_RemoteIP is probably also 127.0.0.1 and m_RemotePort is port of remote machine VNC server.

This is code for creating channel that you should try when you are connected between peers:
[code]wodVPN1.channels.Add(0, 127.0.0.1 , 1200, 127.0.0.1 ,27000);[/code]

Can you try that and let us know how it goes.


Drazen