Why are static hard coded IP used and can we make it dynamic? #427
-
I have been using VpnHoodClient.Connect() to establish a vpn connection. In the Connect() method there is another method called as StartCapture(). The StartCapture() method is using a hardcoded Ip address in builder for VPN service. Refer to the snapshot attached. Also the Ip address is different in different versions, why? v2.1.276 - 192.168.0.100 Instead of adding a static Ip for the builder can we make it more dynamically? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I am still trying to figure it out. As far as I know, VpnService requires an IP range for its virtual adapter. We changed to 192.168.199.188 to make it less likely to conflict with any other service. Let me know if you know the best practice so I can change it. |
Beta Was this translation helpful? Give feedback.
-
Oh, you are using google DNS internally? Google, the company that made us aware that privacy is a valuable thing? They are probably tracking all those DNS requests? Anyway, just some thoughts. Love you work! |
Beta Was this translation helpful? Give feedback.
-
I appreciate your consideration. We will make the feature configurable, as discussed in this issue: #458 The default DNS server will be set to Google, as most clients prioritize reliability. Additionally, the DNS server within the VPN will only see the server IP and will not be aware of individual client requests. However, for those who prefer a different option, there will be the flexibility to change this setting on the server. We are particularly grateful that you are reporting any consideration in the source code. Your engagement and feedback are invaluable to us, and we like to hear your thoughts and any considerations you might have. |
Beta Was this translation helpful? Give feedback.
I appreciate your consideration. We will make the feature configurable, as discussed in this issue: #458
The default DNS server will be set to Google, as most clients prioritize reliability. Additionally, the DNS server within the VPN will only see the server IP and will not be aware of individual client requests. However, for those who prefer a different option, there will be the flexibility to change this setting on the server.
We are particularly grateful that you are reporting any consideration in the source code. Your engagement and feedback are invaluable to us, and we like to hear your thoughts and any considerations you might have.