Running MapStore on an External IP

72 views
Skip to first unread message
Assigned to matteo.v...@geosolutionsgroup.com by me

1520 gis

unread,
Aug 24, 2021, 9:32:23 PM8/24/21
to mapstore-...@googlegroups.com, mapstor...@googlegroups.com
Hi all,

I am trying to install a mapstore codebase project following the guide. I have an Ubuntu Server 20.04 LTS server running nod...@10.19.0 and n...@6.14.4, after running <npm start> the project starts up on localhost:8081, however I would like to have it running on Ip 192.168.15.20:8081. I tried running <HOST=192.168.15.20 npm run start>, but still not running. I also took a look at package.json trying  to change from localhost to 192.168.15.20. I am new to nodejs and reactjs. Could someone point me in a direction on how to achieve my goal?

Thank you very much for your time in advance

Julierme

Matteo Velludini

unread,
Aug 25, 2021, 3:52:34 AM8/25/21
to mapstore-...@googlegroups.com
Hi  Julierme,  

I don't think it is possible to achieve what you want.

what you could do is to specify the ip of your machine in order to be able to access it from a mobile device for example.

To do this you have to edit the start script present in the package.json by adding --host like this
"start""webpack serve --progress --color --port 8081 --host 192.168.15.20 --hot --inline --content-base .",


--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/CAKTKyJL5HfiomkrySZ0rcFN-bLf0K-rTD_w-ntM_xDo%2BV8J3xA%40mail.gmail.com.


--

Regards,

Matteo Velludini

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Matteo Velludini

Frontend Software Engineer


GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928


https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Reply all
Reply to author
Forward
0 new messages