#NEWLINE# @ property #NEWLINE# def host( self ) : #NEWLINE# #INDENT# ip = self . ip #NEWLINE# if ( ip in { '' , '0.0.0.0' } ) : #NEWLINE# #INDENT# ip = '127.0.0.1' #NEWLINE# #UNINDENT# return '{proto}://{ip}:{port}' . format ( proto = self . proto , ip = ip , port = self . port )