import std.stdio : writeln; import std.socket : InternetAddress; import std.conv : to; void main() { string host = "localhost"; string port = "8080"; auto ia = new InternetAddress(host, to!ushort(port)); writeln(ia); }