-
Notifications
You must be signed in to change notification settings - Fork 47
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
Connecting to 10.10.7.1:80... failed: Connection timed out. #12
Comments
how can i connect with my pi on the access point that will appear (SSID:ITEAD-10000xxxxx Password:12345678)?? |
For me, I use my notebook for setting up the sonoff devices. Wasn't able to make it happen with my pi. Questions:
|
how do you setting it up with a laptop? where do you add these commands? |
1.connecting the laptop to the sonoff (I succeed) |
I am using the sonoff.devicesetup.js But I just realized that it will not work in the current version. Other than that it should work. |
but do i have to connect with the PI to the sonoff AP? |
Afaik, you should run sonof server on PI and then with your laptop start setup device script with ip and port pointing towards your PI |
So this means, for my understanding
|
how to run scriptsonoff.devicesetup.js ? |
Yeah, that is correct procedure, you should copy the whole repository to a laptop. |
OK, i will try to install it |
@NiekN were you able to make it work? |
I never used the node.js box. But I think you still have to write "node sonoff.server.js" to run it. You screenshot shows that windows tries to run it native. |
it look like it is connected successfully . but it did not drop directly out off AP mode, but after a time out i get an error like it shows in teh screenshot |
I will check the code once again if i see something strange after the last commit. About the "did not drop directly out of AP mode" => this seams to be an Windows thing (at least on my windows 10 mashine). It is just scanning when the list of wifi networks is open. Otherwise it will just scan every now and then. |
OK, that could be a simple problem in the code => can you please try to change
to the ip-adress of your raspberry pi with an editor (notepad will do), and re-run the code? If that works, I will change the code to solve this for others to. |
i had already changed it to ip of raspbarry in file :sonoff.setupdevice.js |
do i have to install NetworkManager?? |
should not be nessesary on windows (at least 10) |
just double checked everything, and i do not see any reasons why it should not work. As you can connect from windows everything should work fine. I will get a device tomorrow and try again. Only if you have a new device with a version > 1.5.5 it should not work. |
ok. |
version 1.5.5 ??? is that the hardware version |
my sonoff basic is TH 1.0 |
mmh i did not use the ewelink app to this device, should i do that ? I do not know if it will send the ID and API anymore . -Server still running on PI |
Did you see anything on the log files of the pi? Otherwise it is not connecting there. |
I wil check the logs, but i do not know where searching for |
When you close putty, the console will be closed, hence the server is not running anymore. |
Also: your https and http port are mixed up between server and setup (pls see your comments above!) Make sure to use https=1081 also for the device setup |
ports are mixed up? |
i cannot open a SSH and a telnet at the same time, even if i open them both on a different PC. And yes i see now closing the putty console will stop server |
ok installed mp2 , so it can run in the background. after closing putty console, and starting putty again. But for some reason i cannot open a telnet connection with the server . it directly closses putty after opening |
You wrote that you changed the value in the JavaScript code. Also, I see from this little bit of log that you use an old version. Your comments: at sonoff.setupdevice.js so there is a mis match so i stopped the server
still nothing is happons |
Yes correct . Before you changed the devicesetup I had the mismatch. After that i use the latest devicesetup on my pc. And that uses the config file. |
I have no idea what is really wrong. |
What's complicated is the fact that you are doing things without telling what you have done. This way it is nearly impossible for me, to find the root cause of your problem. BTW: telnet is a tool, that opens just a basic TCP socket. So it is possible to open a telnet session to port 1081 and still keep the SSH session open. You can even open multiple SSH sessions at the same time. |
OK, that will be very nice. Thanks About the telnet, what would you advice how to setup at PC, different program or? |
For telnet: you do not need to install it on the pi. On the pc, you can simply start putty twice, or use the cmd-line tool(that you might have to install first, it's not part of every windows version) |
startup sonoff-server at putty try to make connection to 192.168.178.xxx...Cannnot make a connection with host, at port {1081]: Making a connection has failed |
OK, now we know its not the device setup, but something with the server / network when you use netstat, you can see the open ports on the raspberry.
this should show something like
if not, the server is not running. If yes, there seams to be a problem with the network |
Ohh...i just realized that you really wrote [1080] and [1081] to open the connection. it should not be [1080] but simply 1080. The [] are only there to show that it is an optional parameter. So it must be something like this
|
I have now added to check if the server is reachable while setting up new devices. If you now use the latest version (server and client), you can see if the server is reachable, ans maybe even, why it is not reachable. About your screenshot => it is strange that 1080 is not listed! there seams to be something wrong. |
Hi mdopp i used the latest version now on my PI and PC(added my SSID, password and server IP on both devices) on PC it looks ok, paired and connected , like previous version (like 6days ago) but on server it is different: (see in bold, is new ) |
There should be additional logs on the pc. Sorry, I am not able to help you. |
OK.. where can i find this log? |
just the console-log |
@NiekN |
hi mdopp no updates . i try to used Tasmota |
i cannot succeed in connecting to the Sonoff, and need some help
im running the simple-sonoff-server(at putty screen 1)
1.set the sonoff basic into AP mode
2. find and logged into the sonoff (at chrome url)
3,. but when i used "wget -O- 10.10.7.1/device" (at putty screen 2)
i get...
Connecting to 10.10.7.1:80... failed: Connection timed out.
Retrying.
what im doing wrong here ??
The text was updated successfully, but these errors were encountered: