Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Meriemnaim's avatar

Deploying Laravel API on a windows server using XAMPP

Hello, I am trying to deploy Laravel app using xxamp . I have put my project on C:\xampp\htdocs How do i access api from other laptops ?

0 likes
7 replies
tisuchi's avatar

@meriemnaim To understand your question better, here is my question: Do you want to deploy your app in production?

tisuchi's avatar

@Meriemnaim Then, your server should have IP/domain to access it publicly. And your xmapp application allow a port to access the content from there. You need to use it.

For example: IP of your server 127.0.0.1 *Port from the xampp: 8080

So, publicly should access 127.0.0.1:80 via browser which basically connect to your the xampp folder in your server.

Disclaimer: I am not expert on this area. It's my understanding that I though it out there.

JussiMannisto's avatar

@tisuchi 127.0.0.1 is the localhost address. You can't access that from other devices.

@meriemnaim If you want to make your app publicly available on the Internet, you need to host it somewhere. You shouldn't try to do that from your own home. If your computer is connected to the Internet through a router, you'd have to deal with NAT. But the bigger issue is that you don't have a static IP address.

You can google hosting to find different hosting options. There are some affordable virtual private servers out there, for example. You may also want a domain name and an SSL certificate to secure the traffic. They're not very expensive.

Laravel Forge is an option, but I've never used it myself.

Whatever you choose, you'll have some learning to do. Luckily, there's a lot of material online.

tisuchi's avatar

@JussiMannisto I think you didn't read me comment carefully.

I mentioned for example.

For example: IP of your server 127.0.0.1 *Port from the xampp: 8080

Please or to participate in this conversation.