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

ip Config
copy the ip address

if you are on Linux

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