Can anyone tell me how to change the bind-address on the hug API form 127.0.0.1 to 0.0.0.0, please I have been looking around the internet and the only thing I can find is how to change the port number
Asked
Active
Viewed 111 times
1 Answers
1
If you are using hug cli you can do in shell:
hug -a app.py --host 192.168.0.10
or in the code at the end of your app.py
(or whatever it's name is) file:
hug.API(__name__).http.serve(host="192.168.0.10")

mislavcimpersak
- 2,880
- 1
- 27
- 30