great ???Done
Update Library Version : 2.0
Now you can change the DNS without the need to establish a Proxy connection.
Enjoy![]()
great ???Done
Update Library Version : 2.0
Now you can change the DNS without the need to establish a Proxy connection.
Enjoy![]()
Hello,Hi good morning
I have been testing, and I have not been able to get it to work, I send an example that I have created following your instructions.
I have tried testing it on a virtual device and on my samsung s8, in both cases it does not work.
The VPN is created correctly and the padlock is correctly placed, but I do not have internet access (with Wi-Fi connection and data connection)
Hello,
Just checked the library, it seems that it's mandatory to be connected to a proxy server before changing the DNS, we will look into it tonight and update it accordingly
Thank you,
Saif
This library is not based on DNSChanger so their code/approach would be different, this library was built to connect to a proxy serverit's weird, because the application DNSChanger doesn't need to be with a proxy server. directly change dns only and it works.
Thank you very much for reviewing it![]()
thanksThis library is not based on DNSChanger so their code/approach would be different, this library was built to connect to a proxy server
Tonight we will upload a new update that doesn't require the user to connect to a proxy server in case he/she wants to change the DNS only
![]()
thanks a lotHello,
Unfortunately the DNS service will not run without setting up a proxy connection first.
I think in the near future we will release a separate library that will only change the DNS without the need to set up a proxy connection.
Thank you,
Saif
Hello,Anyone been able to get the AddDNSServer function to work? Please provide working example of proxy and DNSServer commands in use. I have been able to get a working proxy connection, but the DNS settings are completely disregarded. I have been able to make a working application using VPNService and change the DNS settings in Android Studio, but was hoping to use B4a to expedite development and add in a few quick extras to the app...
Sub Globals
Dim b4xpc As B4XCodeProxyConnector
End Sub
Sub Activity_Create(FirstTime As Boolean)
b4xpc.Initialize
b4xpc.AddDNSRoute("195.46.39.39")
b4xpc.AddDNSRoute("208.67.220.220")
b4xpc.CreateService
b4xpc.SetProxyServer("94.127.212.200",5900)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed Then
b4xpc.StopProxyService
End If
End Sub
I can't seem to get it to work either. Has been months since I inquired... Ended up writing our app in Android Studio since we had full control over the code and any issues that could arise. B4A libraries, unless open source, don't allow such and you're stuck with a broken product unless you reinvent the wheel - then, you might as well code the app out entirely...Hi @sfsameer This Library still working ? I try my on my side, there are no any error. but just not working.
Actually I search for solution very long time also.I can't seem to get it to work either. Has been months since I inquired... Ended up writing our app in Android Studio since we had full control over the code and any issues that could arise. B4A libraries, unless open source, don't allow such and you're stuck with a broken product unless you reinvent the wheel - then, you might as well code the app out entirely...
Hello,I just re-tested your code snippet by copy and paste directly, as well as using custom settings, replacing the DNS with UltraDNS IPs:
156.154.70.3
156.154.71.3
which should show a red page stating "Blocked" for example, if you try to visit "hotbar.com" or "crack4windows.com" - and indicate the page is blocked.
Upon testing, the page goes straight to the actual website and is not blocked (DNS blocks bad domains and supplies IP of block page server) so DNS is not being considered.
Please try connecting with proxy 64.124.38.138:8080 with the DNS above - it simply does not work. I can send you my application code to verify and confirm also that it is not working.
I can code this same app in Android Studio all day long and it works perfectly fine doing what I'm attempting with B4A - only less hassle and it actually works - so something is not right unfortunately.
Then for example, if you add DNS "62.151.180.19" you should be able to resolve a non standard ICANN TLD for ".pi" domains -example "http://app.pi" should reveal a blank page with basic text...
Please test and confirm. I've tested the app on over a dozen devices... all successfully connect to the proxy and adopt the proxy IP address, but no DNS settings stick or are considered by the VPN connection - only the DNS of the proxy server is considered/invoked for name resolution.
**In one of your first statements you indicate that the proxy must be setup BEFORE adding DNS - your code shows you adding DNS BEFORE setting up the proxy - I've tried before setting up the proxy, after setting up the proxy, after starting proxy.. before creating the service... I'm baffled. Will get source together this evening to run by you.
I can't seem to get it to work either. Has been months since I inquired... Ended up writing our app in Android Studio since we had full control over the code and any issues that could arise. B4A libraries, unless open source, don't allow such and you're stuck with a broken product unless you reinvent the wheel - then, you might as well code the app out entirely...