Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to connect to DiceDB other than the default port number 7379 and host as localhost #11

Open
roopeshsn opened this issue Nov 5, 2024 · 3 comments

Comments

@roopeshsn
Copy link

dicedb-cli is hardcoded to connect only to port number 7379 and host as localhost. Modify it so that it can connect to other than localhost:7379 if the DiceDB is configured to work on a different port number and hostname.

@srinivasan1995
Copy link

srinivasan1995 commented Nov 10, 2024

Hey,
just started testing out dicedb, so tried using dicedb cli to connect to dicedb , I do see hostname port can be provided as part of CLI arguments (in latest master atleast i do see these changes)

➜  dicedb-cli git:(master) go run main.go --host 127.0.0.1 --port 7379
Connected to DiceDB. Type 'exit' or press Ctrl+D to exit.
dicedb> SET TEST "HELLO"
OK
dicedb> GET TEST
HELLO
dicedb>
dicedb> exit
➜  dicedb-cli git:(master)

@sdeepanshu13
Copy link

Hello Can you assign this issue to me?

@sdeepanshu13
Copy link

sdeepanshu13 commented Nov 15, 2024

image
image

I have changes in dicedb-cli repo. I have made port dynamic now. In program arguments user can pass the port number.

@roopeshsn @arpitbbhayani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants