How to run zipkin on another ip address than localhost when starting server with "java -jar zipkin.jar"

1.3k Views Asked by At

Did saw this... But I'm not able to make it run, whatever I have tried, I get either still on localhost, either an exception on armeria bind ( I have stuff running on :8080) and server crash...

In short what I have tried (Windows Server 2016, so no Linux Docker containers ) with no avail. Variation on these batch file commands:

SET "SERVER_ADDRESS=xx.xx.xx.xx"
SET "ZIPKIN_HOST=xx.xx.xx.xx"
java -jar zipkin-server-2.23.2-exec.jar --armeria.ports[0].port=9411 --> armeria.ports[0].protocols[0]=http

It should be simple to run Zipkin on another ip, but I'm fighting. Could you help me, maybe I'm missing something absolutely obvious... But is a pretty common scenario, and is not that well documented.

1

There are 1 best solutions below

3
On

server.address=<ip> does not work?

java -jar zipkin.jar --server.address=192.168.0.7

If it's not working you can add a property file and connects to it when the server starts:

java -jar zipkin.jar --spring.config.location=./application.properties

in application.properties:

armeria:
  ports:
    - port: 8080
      ip: 192.168.0.7
      protocol: HTTP