typicode / json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)
Other
73.04k stars 7.02k forks source link

local ip #879

Open soydepr opened 6 years ago

soydepr commented 6 years ago

aside from localhost how can I set to use with localip.

when I try it does not work

soydepr commented 6 years ago

is there an example how to do this ?

Access from anywhere I would like to access via IP address You can access your fake API from anywhere using CORS and JSONP.

dmitriisoloviof commented 5 years ago

you need to do like this:

json-server --host 192.168.1.XX yourfile.json