Way to open localhost with different URL - xampp

I have tried http://localhost/projectname and http://127.0.0.1/project_name to open my Project in LocalHost
but
I want to open this with some other URL so user can not able to know that I have opened with localhost.
Edited:
My Users currently accessing my project with localhost but now i
want to use some static string to open as url. I mean if currently
users accessing project with localhost/proj but i want to do like
staticString/proj Is it possible?
Is there any way to open project with different URL rather than localhost?
Thanks.

You have to Configure first Virtual Host in your XAMPP or any Web server.
After you can use that name instead of Localhost or IP Address.
Follow this link to configure Virtual Host.
http://sawmac.com/xampp/virtualhosts/
and this also
http://foundationphp.com/tutorials/apache_vhosts.php

You can make use of virtual host configuration in your web server.
Edit your hosts file to include 127.0.0.1 thisismyhost.com
Then can should be able to access your project using thisismyhost.com/my_project

I follow solution of accepted answer but I found one tricky Magic solution for that which i can use without any configuration:
You can use yourString.google It will directly open you localhost.
For Example: Open this link in your browser: pratik.google/
if you have installed xampp it will open your localhost
Really amazing magical trick.
I don't know how it works, May be this is functionality of browsers.

I believe what you are looking for is local tunnel
Use node and npm to install it globally using npm install -g localtunnel
then give the port you want to export lt --port <port>
you will get a link you can share anywhere and anyone can access your localhost site. there are multiple ways and options to it. you can view about it - here!

if you change the port you will see the result like this
> http://localhost:5906/projectname/abc.aspx
right click on the project click on properties and there will be one option web in that change the specific port
hope this may help

Related

xampp not working on localhost(127.0.0.1) but works on(192.168.X.X)

Im running xampp-vm on macOS Catalina. Site loads fine on the provided ip by xampp (192.168.X.X/project_name) but it does not work on localhost (localhost/project_name). Is this normal or is there a way to fix this?
Please go to check 'Network' tab to edit the mapping like:
localhost:8080 -> 80
to
localhost:80 -> 80
Image from the FAQ of Xampp:
https://www.apachefriends.org/faq_stackman.html
Put your projects in different folder. Assign for each project a different domain.
Configure Apache with different hosts.
You can follow the following video about how to setup PHP environment using XAMPP. The last part contains vhosts configuration

Port configuration and automatic port change on Wakanda

When I run a solution on Wakanda there is a port by default, for example 8102, but when I reload it the port changes to 8104. I would have liked to know where the port configuration is and this operation is done? In which file, or option? Because I look for it, but I can't find it.
Thanks in advance.
Update: I have confirmed that when accessed remotely (from another computer), the admin dashboard is only available via HTTPS at port 4433. :8080/admin is available on localhost only.
In order for it to work, the CORS settings need to be enabled for port 4433 as well:
HostIPAddress:4433 POST / GET / PUT / DELETE
Note: From your earlier comment it seems you have admin dashboard working on port 4433. FYI the server has an updated admin certificate, which will come out in next release. In case you have any problem with it, please wait and test with next release.
-------------------------Original Post-----------------------------------------
The admin port is set to 8080 by default. If you would like to change the default value of admin port (typically for deployment), it can be changed using Command Line/ Terminal option "--admin-port=[number]", for example:
"C:\Wakanda\Wakanda Server.exe" "C:\solutions\invoices.waSolution" "--adminport=8090"
Will change solution invoices's admin port to 8090.
You can find more options in the documentation.

Local URL IP redirect via port

I do a lot of custom web development and I am looking for a solution to a problem with testing.
I have a local development server that I run sandboxed environments on. When I need to test something I sometimes will edit my host file to make the domain point at my local IP
In my host file I would have.
127.0.0.1 mydomainname.com
What I would rather be able to setup is if I added a port to a URL:
mydomainname.com:7777
That would then redirect to my local IP
Something like this
127.0.0.1 *:7777
Is this a pipe dream or doable in someway?
You can use Firefox Extension Server Switcher
This firefox extension is a tool for web developers and allows switching between sites on your development and live servers; it helps you to see difference immediately.
It's more easy in use than host file.

Can't access XAMPP from other computers

I have installed xampp on my windows7(64bit). I can view my php website from my own computer but others within the same network can't open no matter they tried my own IP 192.168.x.xx/web folder or 127.0.0.1/web folder.
I did the same thing before in the 32bit win7 and it worked fine. I wonder how I can get it work?
I am pretty new to php and xampp so please give more detail. Really appreciate it!
If you are using windows than all you have to do is to go to Allow an app through Windows Firewall.click on Allow another app select Apache and mark public and private both .Again Allow another app this time select xampp and mark both public and private and is done click apply and exit .
Open cmd by pressing windows button+r write cmd than in cmd write ipconfig find out your ip . than open up your browser write down your ip http://192.168.1.x and you will be on the xampp startup page.if you want to access your local site simply put / infront of your ip e.g http://192.168.1.x/yousite.
Now you are able to access your website in private network computers .
Try running this command and verify that your web server port is listening on all interfaces (0.0.0.0):
netstat -an | find "LISTEN"
It is really common for Tomcat to not listen on 0.0.0.0 until you specifically configure it to do so.
Other than that, verify the port is not being blocked by something.
127.0.0.1 definitely wont work as that is the ip address of the local machine.
Are you perhaps missing a port number in your url, so from another computer try 192.168.x.x:80/index.html or similar
May be your firewall configuration is on, change it, your issue will resolve. I too have the same issue and resolved it through this way.
Change Your Firewall Setting. It would be on So Please off window firewall Setting. I hope so it will be work.

Send Host header when accessing IP address in Firefox

This isn't really a programming question but more about programming and testing tools.
Is there a way to get Firefox to send the header
Host: mydomain.com
when accessing a page at
http://ip.address.goes.here/
so that Apache can route it to the correct VirtualHost?
You can add the host name and ip-address to your hosts file.
Have you tried the Modify Headers Firefox extension?
If you are creating a site and wish to map the host header to an IP (perhaps your local dev box) for testing purposes, then you should consider editing the hosts file instead.
Just setup an entry in the hosts file. Always worked for me :)
I guess you could use the TamperData extension to manually add it each time.

Resources