Pugmatt / BedrockConnect

Join any Minecraft Bedrock Edition server IP on Xbox One, Nintendo Switch, and PS4/PS5
GNU General Public License v3.0
1.44k stars 164 forks source link

How about adding a redirect for xbox authorization requests #438

Open nyakokitsu opened 1 year ago

nyakokitsu commented 1 year ago

Is your feature request related to a problem? Please describe. I have a problem with authorization in xbox live, so I use dns with such redirect rules

user.auth.xboxlive.com^$dnsrewrite=50.7.87.83
xsts.auth.xboxlive.com^$dnsrewrite=50.7.87.83

However, I want to play Minecraft with xbox live, is it possible to add request forwarding in your software.

RyanHakurei commented 1 year ago

If the issue is you have to use your own DNS server, and are thus unable to use Bedrock Connect's DNS server, have you tried adding in the rewrites yourself?

https://github.com/Pugmatt/BedrockConnect#using-your-own-dns-server

nyakokitsu commented 1 year ago

If the issue is you have to use your own DNS server, and are thus unable to use Bedrock Connect's DNS server, have you tried adding in the rewrites yourself?

https://github.com/Pugmatt/BedrockConnect#using-your-own-dns-server

I do not understand the principle of dns servers, can you explain how I can do this?

RyanHakurei commented 1 year ago

You would just modify the DNS redirect rules you already have. So how you have user.auth Xboxlive.com redirecting to 50.7.87.83:

user.auth.xboxlive.com^$dnsrewrite=50.7.87.83

You'd add more rules that redirect the built-in bedrock servers to 104.238.130.180 here I used Hive as an example:

geo.hivebedrock.network^$dnsrewrite=104.238.130.180

nyakokitsu commented 1 year ago

You would just modify the DNS redirect rules you already have. So how you have user.auth Xboxlive.com redirecting to 50.7.87.83:

user.auth.xboxlive.com^$dnsrewrite=50.7.87.83

You'd add more rules that redirect the built-in bedrock servers to 104.238.130.180 here I used Hive as an example:

geo.hivebedrock.network^$dnsrewrite=104.238.130.180

Okay, then what do I need to change in the code and where?

RyanHakurei commented 1 year ago

I think we're misunderstanding, you said you use a DNS with those rules? Do you not control the DNS server (Bind, Adguard Home, PiHole, etc)?

nyakokitsu commented 1 year ago

I think we're misunderstanding, you said you use a DNS with those rules? Do you not control the DNS server (Bind, Adguard Home, PiHole, etc)?

Yes, i use adguard

TechGamer49 commented 8 months ago

Hello, I haven’t used adguard yet. How do you have your DNS Settings in adguard?