using other peer's internet connection (wodVPN)
Hi, I'm trying to connect to internet on PC1
using other peer(PC2)'s internet connection
without installing "wodVPN virtual network adapter".
PC2 is connected to internet
and PC1 and PC2 are successfully connected to each other
using provided "simple" sample project.
I thought it might be possible by using TCP channel add method.
but I don't know the exact usage. I've tried several ways but failed.
My questions are
1)Is it possible?
2)If so, on which peer should I call tcp channel add method.
3)what is the exact usage of the "add" method.
4)on PC1, do I need to change control panel>Internet Option> lan settings's proxy setting?
5)then what is the exact way?
thanks in advance.
using other peer's internet connection
Hi.
Yes, you could. Add TCPLocalProxy
http://www.weonlydo.com/VPN/Help/wodVPN-VPNChannels-Add.html
channel on port 1080. Then on your clients specify you're using Socks Proxy on 127.0.0.1 on port 1080. Whatever arrives there will pipe from PC1 to PC2 and then on destination through socks proxy.
Hope this helps!
Kreso
using other peer's internet connection
Thank you for your prompt reply.
I tested what you suggested, but still I can't make it work.
Here's the code I used.
On PC2 (which is connected to internet).
wodVPN1.Channels.Add TCPLocalListen, "127.0.0.1", 1080, "", 0
(I couldn't find "TCPLocalProxy" channeltype, it's simply not there.
and yes, I don't know what parameters should be passeed at RemoteAddress and RemotePort.)
and on PC1. Socks to 127.0.0.1 port 1080.
and I also tested using "TCPSocksProxy" instead of "TCPLocalListen", but got the same results.
Could you give me more specific code samples. please?
Thanks again.
using other peer's internet connection
Hi.
I finally solved the problem.
and I post what I did wrong here to help others having similar issue.
I should have added vpn channel on PC1
(which is trying to connect to internet through PC2's internet connection).
and here's the correct code(I guess).
wodVPN1.Channels.Add TCPSocksProxy, "127.0.0.1", 1080, "127.0.0.1", 1080
And on PC1, goto control panel > internet options > connection tab >
lan settings > Proxy Server > advanced button click,
and set Socks to "127.0.0.1", port 1080.
and very important!! remain blank HTTP, Secure, FTP input boxes.
(this is what I confused.)
Still I have another question.
How can I use channel type "TCPHttpProxy"?
I created vpn channel like above using "TCPHttpProxy" type,
but this time connection fails.
Would you explain what is needed to correctly use TCPHttpProxy?
Thank you.
using other peer's internet connection
Hi.
If you want to use TCPHttpProxy, you can set up Internet Explorer Proxy settings to use your proxy for HTTPS connections. WHen setup, try to open some HTTPS page. This is only time when Internet Explorer uses secured HTTP proxy that is provided by wodVPN.
TCPHttpProxy uses HTTP CONNECT method to establish connection through proxy with remote side.
Can you try that?
Kreso
using other peer's internet connection
Hi.
Ok, I got it. TCPHttpProxy channel is only for HTTPS. thank you.
and, I have another question.
I installed WeOnlyDo virtual network adapter on both PC1 and PC2.
Still I want to connect internet on PC1 through PC2
but this time useing weonlydo virtual network adapter.
I used "VB\Component\2. Full network redirect" sample project.
In the sample form1,
I set PC1's weonlydo adapter's IP to '192.168.1.1', subnetmask to '255.255.255.0',
and PC2's weonlydo adapter's IP to '192.168.1.2', subnetmask to '255.255.255.0'.
I can successfully connect to other peer, and
when I check "Redirect to remote peer" on PC1,
PC2's sample displays "VPN REQUEST by 192.168.1.1"
but, when I search at google "what is my ip" on PC1 with Internet Explorer,
I expected the browser would show PC2's IP Address,
but it still displays PC1's IP address.
Hmm, how can I verify that "redirect to remote peer" function is working correctly?
using other peer's internet connection
Hi.
You will not be able to route your full network over PC2. You can only access PC2. When full network redirect is enabled, and both PCs have valid IP addresses within same range, you can access remote PC and try to ping it.
However, to route packets through it, you would need a way to bridge adapters, and to perform certain NAT on PC2, which is currently not supported by wodVPN.
You would still have to install some networking NAT software on PC2 in order to route everything through it.
Kreso
using other peer's internet connection
Hi.
Thank you for your replay.
But, even pinging from PC1 to PC2 like below fails regardless of "Redirect to remote peer" checkbox state.
"ping 192.168.1.2"
"192.168.1.1" and "192.168.1.2" are just private IP addresses and that range of adress have not been used in our local network before.
Do you mean "real public IP" when you mention "valid IP"?
Then do I have to have public IP addresses to use "redirect to remote peer" function?
Thanks a lot, again.
using other peer's internet connection
Hi.
"Redirect to remote peer" much be active, and IPs have to be valid. They don't have to be real public IPs, just something that is not used on the network. Also, netmasks must match. Everything needs ot be set up just like if computers would be connected over LAN cable.
Disable your firewalls, perhaps that is the problem as well. Then initiate ping on both sides. It has to work, since wodVPN grabs packets (as they arrive, due to IP/netmask, to virtual card), sends them over to remote PC, which then unpacks them and passes to windows socket stack.
Kreso
using other peer's internet connection
Hi.
Ok, I didn't set RedirectActive property = true on the other side.
after I checked "Redirect to remote peer" on both peers, it works correctly.
thank you.
But, still there's two problems.
1. Everytime I test vpn channel with "simple" project("TCPSocksProxy" type with SOCKS 127.0.0.1:1080, without weonlydo virtual adapter),
it seems fine in first place, but after several times of web site navigation, the content of webpage do not completely displays, only upper part of the content shows and navigation stops. after several retries IE stops too. The site I've tested is "http://www.daum.net/", "http://www.naver.com/" which are popular portal sites in South korea. Is there any other way to improve stability of this vpn channel function?
2. On "Full network redirect" project, after I check "Redirect to remote peer" checkbox on both peers, it takes about 15 to 50 seconds until pinging each other succeeds, and then every networking tasks between each other peers work ok. When I click "disconnect" and click "connect" button and check "Redirect to remote peer" again, pinging succeed immediately, but after I close the project and rerun the project on both peer again, it takes 15 to 50 seconds again. Is it(time delay) a designed operation or do I missed something?
Thank you.
using other peer's internet connection
Hi.
Fortunately, I found that the browser hanging problem with TCPSockProxy channel only occurs in Internet Explorer when I click hyperlink while IE is still loading current webpage. When it occurs, IE shows "website restore" alert bar, and hangs for several minutes. And then sometimes IE wakes up and goes on loading next webpage.
But with Chrome, there's no problem.
Thank you.
using other peer's internet connection
Hi.
Pinging issue you're referring to is actually normal. Similar thing would happen on real network if you would, for example, play with hubs and switches, change IP addresses of computers etc.. ARP table changes and needs to be propagated, as example.
I don't think we can speed up 'ping' to work. Usually it does immediately, but sometimes after many connections, it takes a while, even under Wireshark it is shown that packets are going through.
As for TCP forwarding issue, I would need to duplicate it to tell you more. What IE are you using exactly?
Kreso
using other peer's internet connection
Hi
I'm using Internet Explorer 11 on windows 7 64bit with all latest update installed.
using other peer's internet connection
Hi.
The problem occurs on Chrome too.
It's just a matter of time and stress.
Especially this problem occurs with webpages have a lot of images and ajax javascripts and frames, such as map service websites. I'm seeing this happens almost everytime I navigate to "http://map.daum.net/" which is a famous map service site in South Korea.
P.S. I'v tested both VB and C# "Simple" projects, and got same results everytime.
Thank you.
using other peer's internet connection
Hi.
I tried to duplicate this several times from 2 different computers, and I can't make it stop. What else could be involved here? Do you have some issues with your network connection perhaps?
Kreso
using other peer's internet connection
We utilised "VB\Component\2. Total network redirect" small sample challenge.
Within the small sample form1,
We collection PC1's weonlydo adapter's IP to be able to '192. 168. 1. 1', subnetmask to be able to '255. 255. 255. 0',
as well as PC2's weonlydo adapter's IP to be able to '192. 168. 1. 2', subnetmask to be able to '255. 255. 255. 0'.
I will properly hook up with different peer, as well as
while i look at "Redirect to be able to rural peer" about PC1,
PC2's small sample exhibits "VPN OBTAIN by means of 192. 168. 1. 1"
however, while i look for in the search engines "what can be our ip" about PC1 using Web browser,
We anticipated the particular internet browser could indicate PC2's IP Deal with,
nonetheless it even now exhibits PC1's IP handle.