Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
How to connect the WiFi by QTcpServe?
It Shows that Wi-Fi has connected to "VeeXXX" in my mac.
And its IP is "192.168.15.100";
I want to write a code for wifi connection. How to do ?
I try QTcpSocket but it is not working.
my code ：
I'm going to assume you run your code on your mac. am i correct in this ?
bq. It Shows that Wi-Fi has connected to “VeeXXX” in my mac.
And its IP is “192.168.15.100”;
is your mac's IP address 192.168.15.100 ? or is the Access Point (with name VeeXXX ? ) you are connected to 192.168.15.100 ?
- is there anything listening on port 123 on 192.168.15.100 ?
I’m going to assume you run your code on your mac. am i correct in this ?
Yes, I am trying to run my code on my mac.(But I will try to run the program on my android and ios in the future)
is your mac’s IP address 192.168.15.100 ? or is the Access Point (with name VeeXXX ? ) you are connected to 192.168.15.100 ?
I want to connect to 192.168.15.100 .
is there anything listening on port 123 on 192.168.15.100 ?
Sorry, I check again. The port is wrong ~
How to find out the correct port ?
I don't know whether there is anything listening on port 123 on 192.168.15.100 .
This storage is purchased from a firm.
My mac can connect to the storage by the wi-fi connection.
Its storage is sd card and it can connect with pc by (common) usb.
bq. How to find out the correct port ?
The correct port for what ? what are you trying to do ?
update: i read your other posts and now see you want to be able to write to a wireless flash key. please assume that people read your threads as stand alone.
my guess is that you shouldn't have to worry about the wifi part of the connection, as your mac (and android/ios device) already handle that part.
what you are looking for is an API to that particular device.
i couldn't find any documentation on their website at: http://icirround.com/en/supportcenter/qa-tag/ishowdrive/ do you have anything ? why were you looking at port 123 ? is that from documentation ?
perhaps they don't provide one. you can always ask them http://icirround.com/en/ishowdrive/ at the bottom.
assuming they don't publish their API that leaves you with a few less options.
perhaps you can reverse engineer the protocol going over the wifi. while using their app you might be able to sniff the traffic using wireshark before it leaves your mac and before the WiFi encryption kicks in.
i see you can also move files to it using dropbox. I'm pretty sure dropbox has an api.. it just means it will go via the internet then....
bq. my guess is that .....already handle that part.
You are right. I make things more complex. I just want to get some information from the Wi-Fi connection using Qt code before.
bq. do you have anything ?
No. But there are some information on the internet.
iShowDrive User Manual - iCirround
"iShowDrive for android":https://play.google.com/store/apps/details?id=com.icirround.ishowdrive&hl=zh_HK
"iShowDrive for iOS":https://itunes.apple.com/tw/app/ishowdrive/id792637739?l=zh&mt=8
bq. why were you looking at port 123 ? is that from documentation ?
Not from document. With Terminal on my mac, I using "netstat" when connecting ishowdrive's WiFi. I find its local address is "192.168.15.100.ntp" and its proto is "udp4". But I find the ip disappear when I disconnect the ethernet cable ?!
bq. ... ask them...
I has phone them twice and mail to them. But there is no response yet.
- I has study wireshark recently. But the software seems not support android and iOS.
bq. 1) I has study wireshark recently. But the software seems not support android and iOS.
true.. you might be able to listen in promiscuous mode on your mac using wireshark ? i'm not sure if that will get around the wifi encryption though and i think promiscuous also needs a different wifi driver on your mac..
you might be out of luck then, try to contact the manufacturer though.. they might be interested..