Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

No connection could be made because the target machine actively refused it 127.0.0.1:8083

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • No connection could be made because the target machine actively refused it 127.0.0.1:8083
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SmartConnector Forum
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-10 01:13 AM

0 Likes
9
2173
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-10 01:13 AM

No connection could be made because the target machine actively refused it 127.0.0.1:8083

Hi,

We have a customer who have created an endpoint in SmartConnector, but our SmartConnector cannot obtain a token.

 

See the error below.

 

2021-09-09 00:00:00.3049,Error,RestServe,<no principal>,One or more errors occurred.
An error occurred while sending the request.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8083
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Mongoose.Common.Security.BearerToken.ObtainToken(Uri baseAddress, String username, String password, String tokenActionName)
,[],

 

We are able to login to the SmartConnector Swagger using the username and password that we use our SmartConnector extension.

 

Any idea what may cause this issue?

 

Thanks.

 

Mike

 

 

Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 9
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-13 01:36 AM

0 Likes
8
2164
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-13 01:36 AM

This looks like a misconfiguration issue. Please turn on trace logging (and EWS consume) and attach the resulting log.

 

Also, please provide a screenshot of the REST configuration and the consuming client code.

 

BR

Armend

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-23 02:59 AM

0 Likes
7
2157
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-23 02:59 AM

Hello Armend,

 

See the code below that is used to obtain a token. 

See the log that is created when this function is called. 

Any idea what may be the problem. In most cases this is working fine.

 

2021-09-07 13:31:05,852 [1] INFO SEEwsRestApi - Init...
2021-09-07 13:31:05,852 [1] INFO SEEwsRestApi - Init, url = 'http://127.0.0.1:8083/SBO/', user = 'smartconnector', password ´*****'
2021-09-07 13:31:05,852 [1] INFO SEEwsRestApi - ObtainBearerToken uri = 'http://127.0.0.1:8083/SBO/', user = 'smartconnector', pass = '*******'
2021-09-07 13:31:07,212 [1] ERROR SEEwsRestApi - ObtainBearerToken fail, token is empty or null
2021-09-07 13:31:07,212 [1] INFO SEEwsRestApi - Init ended, rc = '-4'

 

 

 

 public static int ObtainBearerToken ()
        {
            _bearerToken = null;
            try
            {
                // Obtain Token
                Uri uri = new Uri(Settings.m_strURL);
                _log.InfoFormat("ObtainBearerToken uri = '{0}', user = '{1}', pass = '{2}'", uri.ToString(), Settings.m_strUser, Settings.m_strPassword);
                _bearerToken = BearerToken.ObtainToken(uri, Settings.m_strUser, Settings.m_strPassword, "GetToken");
                if (_bearerToken == null)
                {
                    _log.ErrorFormat("ObtainBearerToken fail, token is empty or null");
                    return -4; // invalid token
                }
                _log.InfoFormat("ObtainBearerToken pass, token = '{0}'", _bearerToken.ToString());
                return 0;
            }
            catch (Exception ex)
            {
                _log.ErrorFormat("ObtainBearerToken, Exception, msg = '{0}'", ex.Message);
                return -4;
            }
        }

 

Thank you.

Mike

Tags (1)
  • Tags:
  • english
Reply
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-23 03:09 AM

0 Likes
6
2154
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-23 03:09 AM

If it works sometimes and sometimes not without anything changed, it's 99% EBO session exhaustion when using http. Try using a https connection to EBO and it'll work fine.

 

BR

Armend 

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-23 07:09 AM

0 Likes
5
2150
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-23 07:09 AM

Hi Armend,

Thank you for your answer. Before suggesting it to the customer I have one question and one problem.

 

1. Why it is not working using HTTP?

2. I have created a certificate for the EBO and I am able to login to the EBO using this certificate. When I change the processor settings to HTTPS (https://192.168.1.24:444/EcoStruxure/DataExchange) I get an exception the the SmartConnetcor log and the processor won't start. See below. Can you tell me what's wrong with the certificate?

 

2021-09-23 17:04:13.9425,Error,Processor,<no principal>,EBO OPC Item Discovery Processor,System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority '192.168.1.24:444'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

 

 

Thank you.

 

Mike

Attachments
2021-09-23.log
Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-25 09:29 PM

0 Likes
4
2141
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-25 09:29 PM

Hi Armend,

 


I found the reason for HTTP not working. The server address was incorrect.


It was:


http://localhost:3280/EcoStruxure/DataExchnage

 


Instead of:


http://localhost:3280/EcoStruxure/DataExchange

 

 

"DataExchnage" instead of "DataExchange"

 

 

However, I am still unable to use HTTPS. I am getting the exception below. Any idea why?

 

2021-09-23 17:04:13.9425,Error,Processor,<no principal>,EBO OPC Item Discovery Processor,System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority '192.168.1.24:444'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

 


Thank you.

 


Mike

Tags (1)
  • Tags:
  • english
Reply
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-26 09:41 PM

0 Likes
3
2138
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-26 09:41 PM

Hi,

 

It looks like your certificate isn't valid. Usually you can tell if EBO asks you to "Trust certificate anyway" at login. You'll have to create a valid certificate and install it on your computer.

 

BR

Armend

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-26 11:09 PM

0 Likes
2
2136
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-26 11:09 PM

HI Armend,

 

Thank you for your answer. The certificate was installed and trusted and the EBO does not ask me to trust it when I login. So from the EBO point of view the certificate works fine.

 

The only problem is when I try to start the SmartConnector processor. See the exception below.

 

{"ClassName":"System.ServiceModel.Security.SecurityNegotiationException","Message":"Could not establish trust relationship for the SSL/TLS secure channel with authority '192.168.1.24:444'.","Data":null,"InnerException":{"ClassName":"System.Net.WebException","Message":"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.","Data":null,"InnerException":{"ClassName":"System.Security.Authentication.AuthenticationException","Message":"The remote certificate is invalid according to the validation procedure.",

 

See the attached screen capture. How can I check what is the problem with the certificate?

 

Thanks.

 

Mike

Attachments
Tags (1)
  • Tags:
  • english
Reply
ardak
ardak Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-09-26 11:16 PM

0 Likes
1
2133
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-26 11:16 PM

Could be a lot of things. 

 

Is 444 the HTTPS port EBO is using?

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2021-09-27 02:37 AM

0 Likes
0
2131
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-09-27 02:37 AM

Yes,

 

444 is the HTTPS port. See attached screen capture.

 

Thanks.

 

Mike

Attachments
Tags (1)
  • Tags:
  • english
Reply
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of