Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we open a flutter web application through chrome browser on mobile?

I have created a flutter web application. While selecting a device, I saw options such as chrome and my device. I was able to run the application in both of them. But now, I want to open this web application through the chrome browser on my mobile. How to do it?

like image 651
Aishwarya Avatar asked Jan 26 '23 13:01

Aishwarya


1 Answers

Yes you can. Just be sure you are on same LAN network. And then

Just run this in terminal

flutter run -d chrome --web-hostname 0.0.0.0 --web-port 55555

Now check your pc's ip address on Windows : ipconfig on Linux/Mac : ifconfig

and then on mobile browser run

http://your-local-ip(pc-ip):55555
like image 189
Rahul Dange Avatar answered Jan 28 '23 02:01

Rahul Dange