Trying to start a DEV server with the webui bound to a specific ip using the command line option --ui-ip.
Usage:
temporal server start-dev [flags]
Flags:
--ui-ip string IP address to bind the Web UI to. Default is same as --ip.
--ui-port int Port for the Web UI. Default is --port + 1000.
Describe the bug
The webui is still bound to localhost:
$ ./temporal server start-dev --ui-ip 192.168.1.2
Temporal server: localhost:7233
Web UI: http://localhost:8233
Metrics: http://localhost:42455/metrics
Testing if log is incorrect:
$ curl -x "" http://192.168.1.2:8233
curl: (7) Failed to connect to 192.168.1.2 port 8233 after 2 ms: Connection refused
Minimal Reproduction
Tests as described in bug description:
install temporal cli
try to launch dev server with webui bound to different IP
option is not taken into account
Environment/Versions
OS and processor: Linux amd64
Temporal Version:0.13.1
Are you using Docker or Kubernetes or building Temporal from source? No
What are you really trying to do?
Trying to start a DEV server with the webui bound to a specific ip using the command line option
--ui-ip
.Describe the bug
The webui is still bound to localhost:
Testing if log is incorrect:
Minimal Reproduction
Tests as described in bug description:
Environment/Versions
Additional context
Rapidely looking into the code,
UIIP
is not initialized when buildingdevserver.StartOptions
fromTemporalServerStartDevCommand
(t.UiIp
should be used): https://github.com/temporalio/cli/blob/dbf0a8549cb0fa135e77519ba233874ee74a6d7d/temporalcli/commands.server.go#L26Since it is not initialized, it defaults to the
IP
of temporal service.Note: the same applies to UI Port.