How do I get an IP address by providing a local host name in flutter dart? - flutter

Each time when code gets executed I got this error
SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.29.246, port = 45946

Related

psycopg2.OperationalError connection to server at port 5454 failed Connection refused Is the server running on host and accepting TCP/IP connections

Created an app with flask and connected with postgresql via psycopg2 as connector. Created Dockerfile and while building it shows error of
'''Traceback (most recent call last):
File "init_db.py", line 5, in <module>
conn = psycopg2.connect(
File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "192.168.0.167", port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?'''
have mentioned host, port, database, username and password in it. Still there an issue. Have also tried changing ports but still the error persists.

Can receive but can not send email ubuntu 20.04

I'm using Postfix, Roundcube 1.4.3 and devcot to receive and send emails on my vps server.
I'm able to receive emails but the errors are occurring when sending the email, the mail never reaches the destination.
Port 587 is what roundcube is using.
Roundcube error.log
[25-Dec-2021 07:18:35 +0000]: <669e8q7l> PHP Error: Connection refused (POST /?_task=mail&_unlock=loading1640416601599&_framed=1&_action=send)
[25-Dec-2021 07:18:35 +0000]: <669e8q7l> PHP Error: Failed to connect socket: Connection refused (POST /?_task=mail&_unlock=loading1640416601599&_framed=1&_action=send)
[25-Dec-2021 07:18:35 +0000]: <669e8q7l> SMTP Error: Connection failed: Failed to connect socket: Connection refused in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1702 (POST /?_task=mail&_unlock=loading1640416601599&_framed=1&_action=send)
[25-Dec-2021 07:31:29 +0000]: <eb91q6is> PHP Error: Connection refused (POST /?_task=mail&_unlock=loading1640417491382&_framed=1&_action=send)
[25-Dec-2021 07:31:29 +0000]: <eb91q6is> PHP Error: Failed to connect socket: Connection refused (POST /?_task=mail&_unlock=loading1640417491382&_framed=1&_action=send)
Error I'm getting in Roundcube ui
SMTP Error (-1): Connection to server failed.
You don't have anything listening on the port you are trying to send mail through. You need to configure your postfix to listen and accept mails on port 587.

How to solve socket exception in firebase storage?

SocketException (SocketException: Failed host lookup: 'firebasestorage.googleapis.com' (OS Error: No address associated with hostname, errno = 7))

flutter Unhandled Exception: WebSocketChannelException: WebSocketChannelException: SocketException: OS Error: Connection refused, errno = 111

iam tring to use web sockets
and it's working fine on the others devices and on also release mood
but my emulator , simulator and real device not working on it and always give me this error
Unhandled Exception: WebSocketChannelException: WebSocketChannelException: SocketException: OS Error: Connection refused, errno = 111, address = "my website url" port = 49718
thank you

Failed to set up listener: SocketException: Cannot assign requested address

While launching MongoDB getting this error.
Failed to set up listener: SocketException: Cannot assign requested address.
Screenshot:
You already have a server running on the port that this server is trying to use.