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

ZohaibAhmed's avatar

laravel web ip change

how we can do in laravel when we click on website the ip address can change mean i have used one ip address but it can change automatically after some time

0 likes
12 replies
kokoshneta's avatar

What IP address are you talking about? Yours? The server’s? How do you want to change it? Why do you want to change it?

1 like
Snapey's avatar

Your website IP should remain constant. It should be added to your DNS so that it can be accessed by domain name.

1 like
kokoshneta's avatar

@ZohaibAhmed You can’t change your IP address via Laravel. Your local IP address is generally provided to you by your DHCP server (your router or switch); your router’s IP address is provided by your ISP.

1 like
Snapey's avatar

dont try and host a website on your home internet connection

1 like
Snapey's avatar

@ZohaibAhmed If you were a networking expert, you would still question if this was a good idea.

As you don't know how to deal with dynamic IP addresses, It does not sound like you are a networking expert.

Besides what possible role could a laravel application play in a VPN ?

1 like

Please or to participate in this conversation.