ViaVersion / ViaProxy

Standalone proxy which allows players to join EVERY Minecraft server version (Classic, Alpha, Beta, Release, Bedrock)
GNU General Public License v3.0
307 stars 37 forks source link

can't use public wildcard. #285

Closed Outfit8TSB closed 2 months ago

Outfit8TSB commented 2 months ago

i used Public Wildcard but where should i even put "address_port_version.viaproxy.hostname"? ViaProxy don't even recognize that even if i put that in target address

Log:

[21:57:26] [Netty NIO Server Child IO #2/INFO] (ViaProxy) [PROXY KICK] (192.168.219.103:55946 | null) Wrong domain syntax! Please use:
address_port_version.viaproxy.hostname
RaphiMC commented 2 months ago

Send the full domain you used to connect

Outfit8TSB commented 2 months ago

used Geyser-ViaProxy and connected to 127.0.0.1:19132

RaphiMC commented 2 months ago

You need to use the proper domain syntax (See the config file for an example)

Outfit8TSB commented 2 months ago

well, i am only confused to where should i put the address_port_version.viaproxy.hostname in.

# ViaProxy configuration file

# The address ViaProxy should listen for connections.
# This option is not reloadable.
bind-address: 0.0.0.0:25568

# The address of the server ViaProxy should connect to.
target-address: 0.0.0.0_25565_1.21.1.viaproxy.localho.st:25568

# The version ViaProxy should translate to. (See ViaProxy GUI for a list of versions)
target-version: Auto Detect (1.7+ servers)

# The connect timeout for backend server connections in milliseconds.
connect-timeout: 8000

# Proxy Online Mode allows you to see skins on online mode servers and use the signed chat features.
# Enabling Proxy Online Mode requires your client to have a valid minecraft account.
proxy-online-mode: false

# The authentication method to use for joining the target server.
# none: No authentication (Offline mode)
# openauthmod: Requires the OpenAuthMod client mod (https://modrinth.com/mod/openauthmod)
# account: Use an account for joining the target server. (Has to be configured in ViaProxy GUI)
auth-method: NONE

# The GUI account list index (0 indexed) of the account if the auth method is set to account.
minecraft-account-index: 0

# Use BetaCraft authentication for classic servers.
# Enabling BetaCraft Auth allows you to join classic servers which have online mode enabled.
betacraft-auth: false

# URL of a SOCKS(4/5)/HTTP(S) proxy which will be used for backend server connections. Leave empty to connect directly.
# Supported formats:
# - type://address:port
# - type://username:password@address:port
backend-proxy-url: ''

# Send HAProxy protocol messages to the target server.
backend-haproxy: false

# Read HAProxy protocol messages from client connections.
frontend-haproxy: false

# Enables sending signed chat messages on >= 1.19 servers.
chat-signing: true

# The threshold for packet compression. Packets larger than this size will be compressed. (-1 to disable)
compression-threshold: 256

# Enabling this will allow you to ping <= b1.7.3 servers. This may cause issues with servers that block too frequent connections.
allow-beta-pinging: false

# Enabling this will prevent getting disconnected from the server when a packet translation error occurs and instead only print the error in the console.
# This may cause issues depending on the type of packet which failed to translate.
ignore-protocol-translation-errors: false

# Enabling this will suppress client protocol errors to prevent lag when ViaProxy is getting spammed with invalid packets.
# This may cause issues with debugging client connection issues because no error messages will be printed.
suppress-client-protocol-errors: false

# Allow <= 1.6.4 clients to connect through ViaProxy to the target server. (No protocol translation or packet handling)
allow-legacy-client-passthrough: false

# Allow additional information like player ip, player uuid to be passed through to the backend server.
# This is typically used by proxies like BungeeCord and requires support from the backend server as well.
bungeecord-player-info-passthrough: false

# Custom MOTD to send when clients ping the proxy. Leave empty to use the target server's MOTD.
custom-motd: ''

# URL of a resource pack which clients can optionally download when connecting to the server. Leave empty to disable.
# Example: http://example.com/resourcepack.zip
resource-pack-url: ''

# Allows clients to specify a target server and version using wildcard domains.
# none: No wildcard domain handling.
# public: Public wildcard domain handling. Intended for usage by external clients. (Example: address_port_version.viaproxy.127.0.0.1.nip.io)
# internal: Internal wildcard domain handling. Intended for local usage by custom clients. (Example: original-handshake-address\7address:port\7version\7classic-mppass)
wildcard-domain-handling: PUBLIC

# Enables handling and rewriting of Simple Voice Chat mod packets.
simple-voice-chat-support: false

# Accepts resource packs from the server without showing a prompt to the client.
# This is required for servers that require a resource pack, but the client can't load it due to version differences.
fake-accept-resource-packs: false
RaphiMC commented 2 months ago

address_port_version.viaproxy.hostname should be used on the client. Instead of joining 127.0.0.1:25568 you join address_port_version.viaproxy.127.0.0.1.nip.io:25568 (or address_port_version.viaproxy.127.0.0.1.nip.io:19132 on bedrock). The target address can be changed to anything thats a valid address (It won't be used)

Outfit8TSB commented 2 months ago

oh. thank you!

Outfit8TSB commented 2 months ago

however, i have a question, in address_port_version.viaproxy.127.0.0.1.nip.io:25568, if i am joining the 1.21 server, should i put 1.21.1 on the version placeholder or use v1.21.1 on the version placeholder?

Outfit8TSB commented 2 months ago

i reopened it due to there was no response for 30 minutes.

Outfit8TSB commented 2 months ago

no response. this issue will be reclosed again.

RaphiMC commented 2 months ago

however, i have a question, in address_port_version.viaproxy.127.0.0.1.nip.io:25568, if i am joining the 1.21 server, should i put 1.21.1 on the version placeholder or use v1.21.1 on the version placeholder?

1.21.1

Outfit8TSB commented 2 months ago

Thanks!