Hi, In order to access DSpace from another machine you cannot use localhost or IP-based URLs for the REST API. Additionally, you will need to use HTTPS / SSL otherwise many modern browsers will block your ability to store things like cookies (which are necessary for DSpace to function properly).
Make sure you are following the entire installation process documented at https://wiki.lyrasis.org/display/DSDOC8x/Installing+DSpace Pay close attention to Step 16 "Production Installation" for the Backend, as this is *required* in order to access DSpace from another machine: https://wiki.lyrasis.org/display/DSDOC8x/Installing+DSpace#InstallingDSpace-BackendInstallation Similarly, for the frontend to work in production mode, you must follow Step 8 "Add HTTPS Support" in that section: https://wiki.lyrasis.org/display/DSDOC8x/Installing+DSpace#InstallingDSpace-FrontendInstallation Tim On Wednesday, October 22, 2025 at 7:26:26 AM UTC-5 [email protected] wrote: > Dear All, > We have installed Dspace 8.0 in ubuntu 24 LTS, It is working in local > host, but unable to access in other PC . It might be mistake in > configuration. > Kindly provide step by step guide to configure the same with public ip / > domain. > (Our domain is netting with public ip with SSL Certificate) > We followed the below process > Open the Port 4000 > *ufw* is the default firewall configuration tool. Install *ufw* by > applying the following command, > > *sudo apt install ufw* > > Apply the following command to open port 4000 and 8080. > > *sudo ufw allow 4000* > *sudo ufw allow 8080* > *sudo ufw enable* > > Network configuration for DSpace > Find the IP address of the computer where DSpace is installed. Apply the > following commands to install net-tools software in Ubuntu and know the > network details. > > *sudo apt install net-tools * > *ifconfig* > > Debian users can apply the following command to know the network details, > > *nmcli -p device show* > > Note down the details and add the IP address. > Open the DSpace configuration file, > > *sudo mousepad /dspace/config/local.cfg* > > Find the following lines and add the IP address/domain name instead of > localhost. > > *dspace.ui.url = http://localhost:4000 * > *dspace.server.url = http://localhost:8080/server > <http://localhost:8080/server>* > > > <https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4fmeKJY2h-8qviBnilizn4ebAtQSMZ7UAbXRImPAEenT9AD8dZ0IcNboZI9J4_YIFLPLAacugvTXLiv-VqObQWhMUA9kominniptQl-JNeI27NBFKo-_1VG3_e0fqAwk7UYhrLFvuaD3JeE2SzrEjiiYxcHs2r33kpPFg2ygIoNIaJiVtiR_R-rOvV2I/s1070/dspace-local.cfg.png> > > Save and close the file. > Open the following configuration file (*make sure the location of the > file in your server*) of the DSpace front end, > > *sudo mousepad > /home/dspace/dspace-angular-dspace-8.0/config/config.prod.yml* > > Find the following piece of lines, > > *ssl: false * > *host: localhost * > *port: 4000 * > > Change the hostname. Change *localhost* to the IP address/domain name. > > *ssl: false * > *host: your-ip-address* > *port: 4000* > > > <https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-zw6xhid34Ore0fr9pvqsya2xiWKeN6hdOL7_9qPIUI3uJp8G8R-bwX9yKPr0Q12Q_IPB0LJATXStFWMn7tZ7FVVPD2vMFXrIy-SzarbcKoiq4HlDYrfevevpPfcKvz-vhnv9ulff7zC9dAMhQh-F0k0oGOWRtVPzT16OBSmyxa1yLqRqUJHXc_b2Amo/s890/config.prod.yml.png> > > Save and close the file. > > Enter into the dspace-angular config folder, > > *sudo su* > > *cd /home/dspace/dspace-angular-dspace-8.0/config* > > Apply the following command to build the front end, > > *yarn run build:prod* > > Start the application using PM2. Apply the following command to start the > service, > > *sudo su* > *pm2 start /home/dspace/dspace-angular-dspace-8.0/dspace-ui.json* > > Restart the Tomcat, > > *sudo systemctl restart tomcat10.service* > > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/dspace-community/dc1800af-0f14-46a4-b0ff-f260f1a8110fn%40googlegroups.com.
