Hello,
I using GeckoWebBrowser and i want to fake my ip location, this is my code
But my geckowebbrowser error (connection timeout) when i use sshnet (i not use bitvise ssh client) to forward port dynamic, this is my code
Thank you!
I using GeckoWebBrowser and i want to fake my ip location, this is my code
Skybound.Gecko.GeckoPreferences.User["network.proxy.type"] = 1;
Skybound.Gecko.GeckoPreferences.User["network.proxy.share_proxy_settings"] = true;
Skybound.Gecko.GeckoPreferences.User["network.proxy.socks"] = "127.0.0.1";
Skybound.Gecko.GeckoPreferences.User["network.proxy.socks_port"] = 1080;
Skybound.Gecko.GeckoPreferences.User["network.proxy.socks_remote_dns"] = true;
Skybound.Gecko.GeckoPreferences.User["network.proxy.socks_version"] = 5;
Skybound.Gecko.GeckoPreferences.User["network.proxy.no_proxies_on"] = "localhost, 127.0.0.1";
My geckowebbrowser work well when i use Bitvise SSH Client to forward port dynamic (create sock5 127.0.0.1:1080)But my geckowebbrowser error (connection timeout) when i use sshnet (i not use bitvise ssh client) to forward port dynamic, this is my code
SshClient client = new SshClient(host, username, password);
client.KeepAliveInterval = new TimeSpan(0, 0, 30);
client.Connect();
ForwardedPortDynamic port = new Renci.SshNet.ForwardedPortDynamic"127.0.0.1", 1080);
client.AddForwardedPort(port);
client.SendKeepAlive();
port.Start();
if (port.IsStarted)
this.geckoWebBrowser.Navigate("http://google.com");
else
MessageBox.Show("Error");
Please tell me what did i wrong this code and how i fix it.Thank you!