#community-help

Changing Typesense Server Bind Address

TLDR Zaiste wanted to bind Typesense server to localhost instead of the hostname. Jason guided on using API and peering address to change the binding IP.

Powered by Struct AI

1

4
24mo
Solved
Join the chat
Nov 16, 2021 (24 months ago)
Zaiste
Photo of md5-b12c0749a9dbaefc03cb5817250a595d
Zaiste
08:23 PM
When I start Typesense server the process binds to my hostname, in my case …server.cpp:1048] Check out <http://licklider:8107> in web browser. Is it possible to force it to bind directly to localhost ?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:30 PM
You can use API address and peering address to change which ip it binds to: https://typesense.org/docs/0.21.0/api/server-configuration.html#using-command-line-arguments
Zaiste
Photo of md5-b12c0749a9dbaefc03cb5817250a595d
Zaiste
09:34 PM
Thank you! I wonder if I changed something locally… I have an impression localhost worked for me before when starting the Typesense server
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:09 PM
By default Typesense binds to 0.0.0.0 and I think the hostname gets picked up from the any of the available network interfaces

1