Listen IP address

Open Beginner friendly
#4,150 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
api, backend

Research direction

Start by locating the existing ELECTRIC_PORT handling and the sync-service HTTP API startup path. Add equivalent support for ELECTRIC_IP so the API binds to the configured address, and verify that the existing default behavior remains unchanged.

Written by the indexing model from the issue text.

Description

feature request triage

Hi,

I'm facing a problem where I need the sync-service's HTTP API to listen on a specific IP address on my server rather than simply listening on "0.0.0.0" or "127.0.0.1".

A solution that would work for me is to add an environment variable named ELECTRIC_IP that configures the HTTP API to listen on a specific IP address. I see that an environment variable named ELECTRIC_PORT already exists, so this new ELECTRIC_IP would work similarly.

Dominant language
TypeScript
Stars
10.4k
Forks
375
Avg merge
2d 21h
Merged PRs (30d)
15

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from electric-sql/electric

All issues in electric-sql/electric

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.