I am working on a project for which I am using MS SQL server and using Windows authentication. I have made the database and HTML page both are connected.
Now I have to connect Arduino to my local server because I want to store the data coming from my sonar sensor into Arduino UNO to my database tables and show it on HTML page.
Arduino is on robot car and database is in my laptop I have to connect them remotely.
I know how to connect Arduino to web server but don't know how to connect to my local server. Arduino command to connect to server is client.connect(ip,port)
or client.connect(url,port)
. But I don't know my IP. My local host server URL is localhost:30154\Home
.
Guide me how can i connect my Arduino UNO to my database.
localhost = 127.0.0.1
You can use ipconfig in Prompt to check the v4 protocol, which is your ip, but the problem is if the ip is not fixed.
Você pode usar o ipconfig no Prompt para verificar o protocolo v4, qual é o seu ip, mas o problema é se o o ip não for fixo.