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
Puhpine3w 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_cts3w 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
Puhpine3w 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_cts3w ago
any port under 32770 is not allowed in my router :/ can i change the default port ?
Puhpine
Puhpine3w 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_cts3w ago
lmao
Puhpine
Puhpine3w ago
Does the server have a config/distanthorizons.toml file?
eliot_cts
eliot_cts3w ago
yes giveme a second
Puhpine
Puhpine3w ago
Probably there
eliot_cts
eliot_cts3w ago
but i didn't find the option in it
Puhpine
Puhpine3w ago
Dont see it either When you join the world. Can you execute /dhconfig or something like that?
eliot_cts
eliot_cts3w ago
yes i can use /dhconfig but i don't find any option that allowed me to change the port
Puhpine
Puhpine3w ago
Darn, better to ask in the #Server side fork tread then
eliot_cts
eliot_cts3w ago
okay i will do this, thanks
Miki_P98
Miki_P983w ago
On what port do you have normal MC? I’m just curious
GawrGuraIsHot
GawrGuraIsHot2w ago
Sounds like it's time to get the source and change it :trollos: