Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Refused #17

Closed
camsaway opened this issue Nov 3, 2021 · 14 comments
Closed

Connection Refused #17

camsaway opened this issue Nov 3, 2021 · 14 comments

Comments

@camsaway
Copy link

camsaway commented Nov 3, 2021

Hi,

I deployed this for the first time about 9 months ago on a couple of IOT sensors around my house. It initially worked fine so I suspect my code but don't know how to diagnose.

I constantly get "Connection Refused" from all my sensors. OTA still works so I don't think it's routing or firewall and I've tried a couple of different telnet clients and devices - all with the same problem.

Can you advise: common mistakes that could cause this (and if possible how to fix) error, and/or how to get more information other than Connection Refused (i.e. a connection refused reason).

This is all on ESP8266 (1 NodeMCU and a couple of D1 Minis).

Thanks in advance

@JAndrassy
Copy link
Owner

Hello. which version of the library and esp8266 core? and do you use TelnetStream or TelnetPrint object?

@camsaway
Copy link
Author

camsaway commented Nov 4, 2021

Hi,

Using TelnetStream Object, v1.2.1 and Espressif 8266 v3.2.0.

I doubt it makes a difference but I manage my code in Visual Studio Code using Platform.io plugin. So the versions of code are pulled automatically from their repo's.

The error is an immediate hard error, not a timeout, so something is actively sending back connection refused.

Thanks
Cameron.

@JAndrassy
Copy link
Owner

JAndrassy commented Nov 4, 2021

how many sensors connect over TelnetStream server? the count of concurrent TCP connections is limited on esp8266 to 5.

@camsaway
Copy link
Author

camsaway commented Nov 4, 2021 via email

@camsaway
Copy link
Author

camsaway commented Nov 6, 2021

Have just run up a test NodeMCU with nothing but the example code and get the same problem. Will try going back a couple of versions for the Espressif platform and see

@camsaway
Copy link
Author

camsaway commented Nov 6, 2021

OK. v3.1.0 fails but v2.6.3 works - so seems something has changed here. I'll run my boards on 2.6.3 until there is a fix.

@JAndrassy
Copy link
Owner

so the latest version 3 of esp8266 core is 3.0.2 and the latest stable 2 is 2.7.4. why would you run 3.0.1 or 2.6?

@camsaway
Copy link
Author

camsaway commented Nov 6, 2021

Hi, Maybe we are talking different things here. It's the below platform versions I'm referring to.
They contain Arduino core 2.7.4 and 3.0.1 respectively.

https://github.com/platformio/platform-espressif8266/releases

@JAndrassy
Copy link
Owner

JAndrassy commented Nov 6, 2021

I see 3.2.0 with 3.0.2 there. 2.6.3 has 2.7.4

@camsaway
Copy link
Author

camsaway commented Nov 6, 2021

That was the original version of was using, I tried the two older versions to see if worked as I went back

@JAndrassy
Copy link
Owner

sorry. the problem is with TelnetStream library and I fixed it a while ago, but it is not in a release. please try the git master version

@camsaway
Copy link
Author

camsaway commented Nov 10, 2021 via email

@Aasim-A
Copy link

Aasim-A commented Jan 16, 2022

Hi @JAndrassy, could you make a new release to resolve this issue because it took me a long time to figure it out.

@JAndrassy
Copy link
Owner

Hi @JAndrassy, could you make a new release to resolve this issue because it took me a long time to figure it out.

done. It will be in Library Manager in a few hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants