+ 4
How can I host my project that I built on solo learn using my phone
Like if it's a website and I want my friend to visit it...is there any way I can do that with my phone
6 Antworten
+ 5
Google github.io for this.
I use it occasionally.
+ 3
Thanks Oma
+ 3
if you need a simple solution just to show preview of your sololearn code or do a quick share without hosting stuff then
just replace ".com" in url with ".repl.co"
its my slcodepreviewer u can use
but if you want hosting
as Oma Falk suggested you can use github pages
and there are also other hosting services like vercel, heroku, replit (has its own editor too)
railway and more
you can use any of there
for github pages, vercel, heroku, railway you can create a GitHub Repo Put your code there and setup hosting
you can find tutorials and documentations on their websites
and for replit there are not much to do just write code or connect repo and run it
but they have some limits too
+ 2
Although it's possible, there are many things to consider.
how is your phone connected to the internet, through LTE or a home router...
you will need to install an http server on your phone and configure it.(root directory of your website, server port...)
if you are connected to home router Wi-Fi, you will need port forwarding to your phone, given that the router has a public ip, and whether it is static or dynamic ip...
too many scenarios, how is your phone connected to the internet?
+ 1
My phone uses mobile data as normal.....it's what I use to code coz I don't have a pc
+ 1
given that you really want to host it on your phone and not somewhere else as Oma Falk suggested.
with mobile data you have to check if your ISP assigns public IP addresses.
I suspect that your ip is going to be a private ip address, meaning it can't be directly connected to from the internet.
you can however use a reverse proxy solution, like ngrok... to be able to connect to your phone from the internet.
better if you try first on a local network (Wi-Fi) ,
install http server on your phone from Google play - - > and access it from a device in the same network. or just from your phone to test it.
it's not that complicated, networking is what makes it tricky.