VPN server question

goom1961 said:
I mean how do they get a unique IP address?
The VPN server gets the same public IP as the network its on. If you have a VPN server at home like I do, any device connected to my VPN will have my house's public IP.

I'm guessing you are talking about commercial VPN services for "privacy" reasons. A shared VPN that's commercially rented out will have a different IP from your home IP because the VPN is served from a server in a datacentre somewhere in the world. VPN services have multiple datacentres to choose from throughout the world. So you could choose a Danish, Hong Kong, South Korean or American IP. That just means the server you are connected to is located in a Danish, Hong Kong, South Korean or American datacentre. Nothing more than that.

VPN servers are no different except that some VPNs don't run through a traditional server at all, they run through a network appliance like a firewall.
In the corporate world, yes. In small businesses or at home, VPNs are usually hosted from a general purpose device like a Raspberry Pi (mostly hobbyists), a typical consumer router, or something like a Synology/QNAP NAS.

My VPN is hosted on my pfSense router.