How can I host my project that I built on solo learn using my phone | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

31st Dec 2021, 8:35 AM
Mugume joel
Mugume joel - avatar
6 Answers
+ 5
Google github.io for this. I use it occasionally.
31st Dec 2021, 9:02 AM
Oma Falk
Oma Falk - avatar
+ 3
Thanks Oma
31st Dec 2021, 9:03 AM
Mugume joel
Mugume joel - avatar
+ 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
1st Jan 2022, 6:07 AM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
+ 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?
31st Dec 2021, 8:54 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
My phone uses mobile data as normal.....it's what I use to code coz I don't have a pc
31st Dec 2021, 8:59 AM
Mugume joel
Mugume joel - avatar
+ 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.
31st Dec 2021, 9:16 AM
Bahhaⵣ
Bahhaⵣ - avatar