Forum Home › Forums › Installation Issues › "Unable to login : Server is unavailable" Problem?
Tagged: connection
- This topic has 18 replies, 7 voices, and was last updated 5 years, 4 months ago by
murphybeck.
-
AuthorPosts
-
September 22, 2018 at 4:34 pm #4303
MikhailModerator2018-09-21 02:54:40
Error compiling the source code of the formulas: Hi,
This message means that there is a problem in a formula of input channel. You should fix the formula and restart the Server service.
See line 571 in C:\SCADA\ScadaServer\Log\CalcEngine.cs to find out what is the formula is incorrect.September 23, 2018 at 4:39 am #4305Muhd Afham
ParticipantOK thanks, it working.
May 29, 2020 at 10:28 am #6866danelyoung
ParticipantThis exception message says you’re trying to connect to the same host ( 127.0.0.1 ), while you’re stating that your server is running on a different host. This 127.0.0.1 represents a ‘loopback’ . It allows the computer to communicate with itself via network protocol .
Dns.GetHostEntry(IPAddress.Loopback).HostName returns the host name of your machine. When you pass a host name to TcpClient , it will resolve it to one or more IP addresses using Dns.GetHostAddresses(hostName) . This includes the public and local IP addresses of your machine (e.g. 192.168.12.10), but not 127.0.0.1 (loopback address). So your client is trying to connect to any of the non-loopback addresses of your machine, while your server is listening only on the loopback address . So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.
July 15, 2020 at 7:21 am #7020murphybeck
ParticipantThis exception message says you’re trying to connect to the same host ( 127.0.0.1 ), while you’re stating that your server is running on a different host. This 127.0.0.1 represents a ‘loopback’ . It allows the computer to communicate with itself via network protocol .
Dns.GetHostEntry(IPAddress.Loopback).HostName returns the host name of your machine. When you pass a host name to TcpClient , it will resolve it to one or more IP addresses using Dns.GetHostAddresses(hostName) . This includes the public and local IP addresses of your machine (e.g. 192.168.12.10), but not 127.0.0.1 (loopback address). So your client is trying to connect to any of the non-loopback addresses of your machine, while your server is listening only on the loopback address . So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.
-
AuthorPosts
- You must be logged in to reply to this topic.