How To Connect Your Server To Your Phone.

What's is Needed

  • Mobile Hotspot
  • A running Server.

Let begin.

Firstly, Turn on your mobile Hotspot
Connect your Pc to the hotspot
then create your server.
for this article I will be using react server.
if your don't have a react project you can create one
npx create-react-app new_react_project

cd new_react_project
npm start
# server will be created on localhost:3000

3000 is the PORT number

if you are on Windows

ipconfig
ip Config
copy the ip address

if you are on Linux

ip a
ip address
in my case it is 192.168.43.198
this is equivalent to localhost
Finally, enter the ip address with the PORT number e.g
192.168.43.198:3000
Congratulations, you can now serve your contents to your phone.

22