How to avoid using ports for multiple projects?

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

How to avoid using ports for multiple projects?

Postby thinsoldier » 24. March 2022 09:44

Is it possible to give the VM a custom IP address so that I don't have to include ports in the urls I use for local projects?

I was using some vagrant boxes that had their own IP and no need for ports.

So my urls were like:
Code: Select all
project4.oldemployer
project12.newemployer
project23.sidehustle
project8.family
project3.friend
projectA.dev
projectB.test
projectC.usa
projectC.canada
projectC.uk
projectC.test

I edited the hosts file in OSX to have all of those domains point to the same custom IP used by the VM
thinsoldier
 
Posts: 18
Joined: 19. November 2013 19:38
Operating System: Mavericks Mac OS X

Re: How to avoid using ports for multiple projects?

Postby Nobbie » 24. March 2022 10:37

Leaving out the port from an HTTP Request is identical to applying port 80. You can only leave the port, if the server listens on port 80. Its not a question of any IP.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 23 guests