hostname property
String?
get
hostname
A literal IP address or host name that can be resolved to an IP address.
Note about 0.0.0.0
While listening 0.0.0.0
works on all platforms,
the browsers on Windows don't work with the address 0.0.0.0
.
You should show the message like server running on localhost:8080
instead of
server running on 0.0.0.0:8080
if your program supports Windows.
@default {"0.0.0.0"}
Implementation
_i2.String? get hostname => _i3.getProperty(
this,
'hostname',
);
set
hostname
(String? value)
Implementation
set hostname(_i2.String? value) {
_i3.setProperty(
this,
'hostname',
value ?? _i6.undefined,
);
}