bubuntux / nordlynx

GNU General Public License v3.0
192 stars 43 forks source link

Ability to set which location to connect to #149

Closed adamef93 closed 2 months ago

adamef93 commented 9 months ago

Describe the solution you'd like I have a nordlynx container running in one of my stacks with a SERVERURL variable using the url of a local node to reduce latency. I tried deploying the same config in a different stack using a node url in a different location and it still connected to something local, if not the same node. Confirmed by comparing the geoIP results of the IP assigned to the container vs an IP received by selecting the same location in the Nord desktop app. I wouldn't have just added a SERVERURL to the stack myself which makes me think this option existed at one point and doesn't anymore. Any chance this functionality can be implemented somehow?

Edit: I forgot to mention I also tried changing the timezone variable to see if that made a difference, but it didn't

mikael-j-rich commented 9 months ago

You can. Just set the COUNTRY_CODE env variable to for example Australia, and server list will filter on it. Worked for me anyways :)

adamef93 commented 9 months ago

Thanks, but I'm trying to connect to a different state within my country, not a different country altogether

veepee78 commented 9 months ago

I was not able to change country by using country_code. What should I write there? Name, country 2 letter code? It connected only to my country.

jimbobjonesbob commented 8 months ago

I was not able to change country by using country_code. What should I write there? Name, country 2 letter code? It connected only to my country.

I was trying to get it to change server for awhile using COUNTRY_CODE but couldn't. Here is what I did. I commented out QUERY=filters[servers_groups][identifier]=legacy_p2p, and put this in: QUERY=filters[country_id]=209

209 = switzerland. That works for me.

edit: also just found this which has a list of countries https://github.com/bubuntux/nordlynx/discussions/8

adamef93 commented 8 months ago

Again, I'm trying to connect to a different state within the same country. Please see my last comment.

jimbobjonesbob commented 8 months ago

My reply was not in response to you, but if you read the thread I linked to you'll find the info as to how to connect to a specific server.

Note END_POINT

On Mon, 13 Nov 2023, 4:46 am adamef93, @.***> wrote:

Again, I'm trying to connect to a different state within the same country. Please see my last comment.

— Reply to this email directly, view it on GitHub https://github.com/bubuntux/nordlynx/issues/149#issuecomment-1807194433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2YX7BYGMIGGLMNACZQHQ3YEEDPPAVCNFSM6AAAAAA5U3VZISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGE4TINBTGM . You are receiving this because you commented.Message ID: @.***>

pirakleous commented 8 months ago

@mikael-j-rich the latest docker image does not have the COUNTRY_CODE change. How did you get that to work?

mikael-j-rich commented 8 months ago

@pirakleous sorry, probably didn't check the latest version. I'm not running this image anymore for different reasons but i'll check if i have my latest compose file saved somewhere.

landcraft commented 5 months ago

I was not able to change country by using country_code. What should I write there? Name, country 2 letter code? It connected only to my country.

having the exact same issue, despite setting env variable COUNTRY_CODE to another country, NordLynx connects to mine

battlesnake commented 5 months ago

Similar. Tried COUNTRY_CODE as Switzerland, but GeoIP still says Netherlands (where my server is located).

landcraft commented 4 months ago

I gave up and installed the NordVPN extension in the relevant browser container. Works like a charm.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.