How to set endpoint options in phoenix playground

I am evaluating live book + phoenix playground. Live book is hosted on a remote machine (I can access the live book server using --ip option). Now I need to bind phoenix server (started via phoenix playground) to a host other than localhost. This is what I have tried:

PhoenixPlayground.start(
  live: Demolive,
  endpoint_options: [
    http: [
      ip: {0, 0, 0, 0}
    ]
  ]
)

But I only have access via localhost.

I didn’t use PhoenixPlayground before. But are you exposing the default port on that remote machine? I assume something like this would work:

PhoenixPlayground.start(
  live: Demolive,
  port: 1234,
  endpoint_options: [
    server: true,
    http: [ip: {0, 0, 0, 0}]
    ])

note that usually the default port for http stuff is 80. but it really depends on how this remote machine is setup for you.

Thanks @cevado . The port is not the problem but ip/host. Just to be sure, I did the following:

on the remote machine, I ran:

python -m http.server whatever_port 

and on my local machine, ran:

curl remote_ip:whatever_port

and everything worked fine.