L
L
LoliDeveloper2021-07-19 17:48:35
Android
LoliDeveloper, 2021-07-19 17:48:35

How to test an android application with a server?

I am writing a client for android that will interact with the server.
How can you test such interaction on your PC without resorting to buying a hosting?
My problem is that I'm testing on a phone, and I don't understand how it can communicate with the server with SQL on the computer.

Thanks for answers. I will try.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-07-19
@LoliDeveloper

LoliDeveloper , Raise a server on your computer. Inside the local area to which the computer and phone are connected, each device has its own IP address. Here you are on your phone and can access the server on your computer.
For example, the server is up on localhost:3000 and the computer has an address on the network 192.168.1.100, then you can access it inside the local network at the address
http://192.168.1.100:3000
And then this server of yours receives requests, operates with the database and returns answers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question