Restrict http module to certain port

Is there a way to restrict the http services to localhost only
for e.g :
http://localhost:9200

You can set:

http.host: localhost