How to change the 25049 Port ?

Hey, i'm a beginner with distant horizons, and i would like to use it on my server. 1-How can i change the port to let the server and the client exchanged ? (i didn't find the option in the settings of the mod in MC, and the command: /dhconfig serverport isn't working) 2- Am i supposed to open the port on my router or on my server properties ?
17 Replies
Puhpine
Puhpine4w ago
You don't need to change the port, default is fine. On your router, you can't open a port in your server properties
eliot_cts
eliot_cts4w ago
i can't use the 25049 port because of my router settings... the smallest one i can set on my router is 32770
Puhpine
Puhpine4w ago
Are you sure? That shouldn't be a thing And you don't need smaller than 32770. 25565 is a lot bigger Oh wait, I read the numbers wrong
eliot_cts
eliot_cts4w ago
any port under 32770 is not allowed in my router :/ can i change the default port ?
Puhpine
Puhpine4w ago
Your router is stupid Are you sure you are looking at port forwarding? Anyway, yes you can change the port DH will use But I don't remember where...
eliot_cts
eliot_cts4w ago
lmao
Puhpine
Puhpine4w ago
Does the server have a config/distanthorizons.toml file?
eliot_cts
eliot_cts4w ago
yes giveme a second
Puhpine
Puhpine4w ago
Probably there
eliot_cts
eliot_cts4w ago
but i didn't find the option in it
Puhpine
Puhpine4w ago
Dont see it either When you join the world. Can you execute /dhconfig or something like that?
eliot_cts
eliot_cts4w ago
yes i can use /dhconfig but i don't find any option that allowed me to change the port
Puhpine
Puhpine4w ago
Darn, better to ask in the #Server side fork tread then
eliot_cts
eliot_cts4w ago
okay i will do this, thanks
Miki_P98
Miki_P984w ago
On what port do you have normal MC? I’m just curious
GawrGuraIsHot
GawrGuraIsHot4w ago
Sounds like it's time to get the source and change it :trollos: