[GH-ISSUE #4266] [bug]: Mqtt over Websockets always uses port 8081 #1548

Open
opened 2026-03-16 20:48:04 +03:00 by kerem · 1 comment
Owner

Originally created by @d3473r on GitHub (Aug 15, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4266

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When i try to connect to a mqtt broker over wss on a different port than 8081 it will not work.
It says it is connecting via port 443, but in the console you see in reality it wants to connect via port 8081

Screenshot 2024-08-15 at 10 04 55

Steps to reproduce

  1. Setup a mqtt broker (emqx for example)
  2. Put a reverse proxy infront of emqx (traefik for example) and provide the wss connection on a different port (443)
  3. Try connect via hoppscotch

Environment

Production

Version

Local

Originally created by @d3473r on GitHub (Aug 15, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4266 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When i try to connect to a mqtt broker over wss on a different port than 8081 it will not work. It says it is connecting via port 443, but in the console you see in reality it wants to connect via port 8081 <img width="1004" alt="Screenshot 2024-08-15 at 10 04 55" src="https://github.com/user-attachments/assets/b78a79a9-2ce8-424e-a075-13b28dc9a8a3"> ### Steps to reproduce 1. Setup a mqtt broker (emqx for example) 2. Put a reverse proxy infront of emqx (traefik for example) and provide the wss connection on a different port (443) 3. Try connect via hoppscotch ### Environment Production ### Version Local
Author
Owner

@musuyaba commented on GitHub (Sep 1, 2024):

Actually, it doesn't always use port 8081 because other ports can be used. But why can't we use port 443?

<!-- gh-comment-id:2323543438 --> @musuyaba commented on GitHub (Sep 1, 2024): Actually, it doesn't always use port 8081 because other ports can be used. But why can't we use port 443?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1548
No description provided.