perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Changing host from localhost to private ip #991

Open cktonychang opened 6 years ago

cktonychang commented 6 years ago

Hi,

How can I change the default host from localhost to private ip?

zenglian commented 6 years ago
   ipAddress("0.0.0.0");        // for all addresses
   ipAddress("192.168.1.2");  // listen this ip only