Not able to ping the biometric device "uface 800 ZKTeco" after power off - connection

I have recently bought uface 800 ZKTeco biometric devices and created the application to pull the attendance log from the device. Everything is working fine but whenever we are restarting machine by power off/on then I am not able to connect to the machine. I tried to ping the IP assigned to device from the command prompt but unable to ping, its saying "Request timed out.". I red the documentation provided with SDK but did not get any solution. Kingly help me to resolve the issue.

Disable the DHCP in the biometric device and set the static ip. So that, after restarting the device, IP will not be changed automatically.

Related

Charles Proxy not working on Mac with iPhone

I am trying the proxy the network traffic from my iPhone to Mac via Charles Proxy, below are the versions i am using:
iPhone - model 13, OS - 15.4
Mac - OS - Monterey (12.2.3)
Charles - 4.6.2 (licensed)
I installed Charles on Mac, enabled SSL Proxying, added generic IP (0.0.0.0/0) in Access Control Settings, got the local IP address from Help and used it on my iPhone wifi settings - Proxy > manual > local IP from Charles and port 8888.
As soon as i do this my phone is not able to connect to internet at all. I have seen various instructions about adding root certificate, enabling trust settings etc, but those all can be done only if am able to connect to internet to download the certificates. Which i am unable to.
I went through every question on this site which mentions Charles proxy, but none could provide any solution to my problem so appreciate any inputs on this.
If there is no important information in your phone, you can reset the network settings first, then try the following
Make sure that both the computer and the phone are not using a virtual private network
The computer and the phone are in the same network environment
The computer has the Charles root certificate installed
The phone has successfully installed Charles' certificate and trusts it.
If the above suggestions don't help you, I suggest starting from scratch and troubleshooting the problem step by step
Let's take mobile phones and computers accessing https://www.google.com separately as an example
After the computer installs the certificate, can it be connected to the Internet normally, and can it crawl Google's response request?
The mobile phone and the computer are on the same network segment and use the proxy URL provided by charles. Can you access and download the certificate?
3. On the computer, does Charles pop up an access prompt and ask you to choose whether to agree to the access?
Turn off the computer-side crawling and access it on the mobile phone to see if it can crawl the response request on the mobile phone.
Next time, check the firewall in the security and privacy settings. It should not block Charles' incoming connections. I spent two hours trying to figure out what was going on

ExpoCLI- IOS Could Not Connect to Server

I have been working on a react native project in Windows 10 for a while now using Expo to scan the given QR code and test the app on my IOS device. The other day I ran $expo start and everything seemed to go fine until I tried to load the app on my IOS device. I received this message:
Could not connect to server
I then "Run in Web Browser" which worked fine, so I tried accessing 127.0.0.1:19000 in my Iphone's browser (firefox) and it as well could not connect to server. My phone is connected via wifi which is 2.4 or 5g. I wasn't sure how this would effect this so I used a wifi adapter on PC to match which wifi connection phone and PC were on and that didn't help.
I am using react version 17.0.1, expo version 3.28.5, and "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz"
I have tried:
Turning off windows firewall
Using different Iphones to connect
npm install --global expo-cli
Changing Connection from "LAN" to "Local"
Reinstalling Node
Creating a System Variable called: "REACT_NATIVE_PACKAGER_HOSTNAME" with the value "192.168.2.108". This did change the LAN IP address as intended but it did not resolve the problem. I just got the same message with the new IP address.
This problem just started happening out of the blue and I'm not really sure what to do next. If you need any additional information I'd be happy to give it.
try to use
expo start --tunnel
When you get the message:
"Error loading DevTools ValidationError: "urlType" must be one of [exp, http, redirect, no-protocol]"
Just wait for a bit and the QR code for tunnel will appear. It does the same for me as well.

How to make a request to localhost via iOS device (using Xcode)?

I have a localhost website up at localhost:1336. When I run it on my simulator using Xcode, the app does not encounter any problem make a request to the localhost for data. But when I connect my iPhone via USB cable to the mac, and run the app on the iPhone device and makes the request, but then I get an error "Error- Could not connect to the server.".
I also confirmed that they are on the same Wi-Fi and using same IP. On Safari on my iPhone, I went to http://IPNumber:1336 and it was able to access the site via my iPhone. But some reason, through the app, it cannot connect to the server.
Any input or insight on this would be greatly appreciated. Thank you in advance.
the term 'localhost' means the same device, i think you mean a host on your local network? going localhost:1336 means your device is connecting to itself, its the same as going 127.0.0.1:1336. hence why it works on your simulator but not your phone, since your server and simulator are running on the same device
you have to use http://IPNumber:1336 in your app as well
"Localhost" means the same device. If you are not running a HTTP service on your iPhone, you should not use "localhost".
Another point, you are using "http", if your iPhone is running iOS9+, you will need to check whether App Transport Security will be an issue, here is an article on how to do that: http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/

How do I get my iphone to connect to local Xampp server on my mac while testing an xcode app

I am doing a Ray Wenderlich tutorial how to make an app like "Instagram". It's my first time setting up a database. I am using Xampp and hosting on my mac.
I CAN get the app to run with the xcode simulator and I can log in and it works with the server. However when I run my iphone device it runs the app but when I go to login through the app it says "Could not connect to server".
What am I missing? I think all my permissions are set to anybody etc... But again I'm totally new to using a database. It seems though that if the simulator can do it the phone should be able to. Also it's not a provisioning problem, that profile is valid and it wouldn't run on my app if it wasn't. I just cant get to the database from the device.
Any help would be awesome!
If the app isn't able to connect to the server, there might be an issue with the server address.
When running on the simulator, you're still on your mac, so something like http://localhost/DATABASE_ALIAS is enough. But when running on a different device, that is no longer true.
To keep things simple, you should make sure the iPhone is connected to same network as your Mac and then replace localhost with either the Mac local IP or its Bonjour address, for instance: http://YOUR_MAC_NAME.local/DATABASE_ALIAS.
To find out the Bonjour address, open System Settings and find the machine name under Sharing. As an example, if it is called "Herbie MacBook", the address would be "Herbie-MacBook.local".

Pocket PC not Connecting to PC

I have a Symbol PPT8800 that will not connect to Windows Mobile Device Center. It was working, I took it off the cradle, did a hard reset, and now it's not connecting. Is there a setting on the HH itself that is preventing the connection?
I have other Symbol PPT8800's that will connect in the same cradle without an issue.
There are a lot of possible sources for connection problems between a windows mobile handheld device and a PC running WMDC (ActiveSync).
use a known good USB cable
connect USB cable directly into PC and avoid USB hub
verify WMDC connects with another windows mobile device
disconnect handheld and reboot you PC and wait until PC is booted
before trying to connect
"Allow USB connections" has been deselected in WMDC Connection
Settings
sometimes the device setting "Enable advanced network functionality"
in Start/Settings/Connections/"USB to PC" has to be unchecked (or
checked).
the device has a corrupted registry and does not start the connect
(repllog.exe) or does not authenticate correctly. Do a clean boot or
wipe of the device to get the device back to factory defaults
I am sorry, but there are many possible issues that can cause a WMDC connection to fail. Recently I had the prob that after sleep/resume of my PC the USB hubs were in power save mode and I was unable to get device to connect to WMDC.
Does your PC do some 'boing' sound when you attach the USB cable to the device?
What does Hardware Device Manager show? Any exclamation marks?
EDIT: How to wipe a device?
You need to write either a small .net or c++ app using DMProcessConfigXML and the following wap provisioning xml:
<wap-provisioningdoc>
<characteristic type="RemoteWipe">
<parm name="doWipe" value="1"/>
</characteristic>
</wap-provisioningdoc>
[see also http://peterfoot.net/UsingRemoteWipe.aspx]
or use RapiConfig tool from Mobile SDK.
If both are not useable for you (is that running Windows Mobile or Windows CE?) or just restore factory default or reflash the device. If it is a device with Windows Mobile before version 5, you can just do a cold boot but delete any persistent folder first (ie Flash File Store or ???).
Factory restore of PT 8800:
hold white RESET button + POWER + FUNC

Resources