[Feature] 联机功能客端支持指定本地端口
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Java
- Stars
- 10.1k
- Forks
- 934
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 82
Description
概述 | Summary
当作为客户端输入邀请码连接时,额外显示一个可选的输入框,用于输入端口,如果不填写仍然随机,如果冲突就提示不可用或者自动顺延
原因 | Reason
许多的模组的联机功能依赖精确到端口来区分服务器,如xaero maps,我在实际使用时多次连接进入同一存档,却因为端口不同生成了多份地图;
此外,固定端口就可以和hmcl自带的启动后自动进入服务器相配合(将本地地址保存为固定服务器)
详情 | Description
建议将popup改为,这可能需要陶瓦联机官方的支持
+--------------------------------------------+
| **作为房客加入** |
| +------------------------------------+ |
| | 房主提供的邀请码 _(必填)_ | |
| +------------------------------------+ |
| +------------------------------------+ |
| | 本地连接端口 _(选填)_ | |
| +------------------------------------+ |
| 确定 取消 |
+--------------------------------------------+
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the client invite-code join popup and the TaoWa online integration that handles local connections. Confirm whether the service supports a requested local port; done means an optional port is accepted, random allocation remains the fallback, conflicts are rejected or advanced, and the fixed address works with HMCL's automatic server entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100