How can i solve this error? I have loaded localhost but still getting same error. This is my code:
Future<void> connect() async {
var server = await HttpServer.bind(InternetAddress.loopbackIPv4, 80);
server.listen((request) async {
// Check if the path is '/login'
if (request.uri.path == '/login') {
// Create OpenId instance with the current request.
OpenId openId = OpenId(request);
// Switch the mode
switch (openId.mode) {
// No mode is set
case '':
{
//Redirect the user to the authUrl.
request.response
..redirect(openId.authUrl())
..close();
break;
}
// Authentication failed/cancelled.
Error:
E/flutter (16515): [ERROR:flutter/lib/ui/ui_dart state.cc(184)] Unhandled Exception: SocketException: Failed to create server socket (OS Error: Permission denied, errno = 13), address = 127.0.0.1, port = 80
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…