-2
I am using Visual Studio 2017 to run the application. (ASP.NET MVC)
How can I make another computer connect the same url address: 192.XXXXXXXXXXX:56987
.
That is: 2 computers working at the same address, where I can debug the computer A and B.
I have 2 computers connected to the same wifi network.
1 - Attempt:
I already went to the Windows firewall configuration > I added new rule ... (New port configured).
And I still get the following error:
Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.
2 - Attempt:
Start Menu > ISS > Website Associations > New port and IP.
Same problem. " Bad Request - Invalid Hostname ..."
3 - Attempt:
I’ve tried to put http://192.XXX.XX.XXX:56987/
4 - Attempt:
I have tried the colleague’s reply Rovann Linhalis. The problem remains the same.
5 - Attempt:
I tried my colleague’s answer Gypsy Morrison Mendez, the problem changed.
Now it is no longer "Bad Request - Invalid Hostname ...". Now it is:
Service Unavailable HTTP Error 503.
The service is unavailable.
Some solution ?
how to use the same localhost? explain your goal better so I can help you
– Rovann Linhalis
Localhost is just the local nickname of each machine. Use the IP of the machine on the network to access. If it doesn’t work, it can be the firewall of the server (or network) blocking.
– bfavaretto
So: The computer "A" has visual studio installed and ISS, computer "B" has nothing, has only one browser. How to make computer "B" with the same network as "A".
– Matheus Miranda
@bfavaretto, Voce have any link or tutorial ? I’m novice at these network things.
– Matheus Miranda
Connect the 2 on the same router and see what is the IP of each of them. I have no tutorial to recommend, but should have several on google.
– bfavaretto
Your application runs on a browser using localhost and you want to access the work directory on another computer is this?
– Felipe Duarte
That @Felipeduarte.
– Matheus Miranda
You’re remembering to put the protocol?
http://
IP:porta
, and not onlyIP:porta
? depending on the environment it makes a difference.– Bacco
@Bacco, yes I’ve tried tbm, the problem is the same
– Matheus Miranda
Did you see if your router has an option to 'isolate wireless clients' or something? It has a router that does not allow communication between wireless pairs. Test with a network crossover cable between the 2 pcs, if you can, to see if this is not it (but then you would need to manually IP). Or cable testing, even with the router.
– Bacco
Well thought, I’ll try here.
– Matheus Miranda
I talked to Matheus on chat, and it’s really weird... on the same computer that runs the localhost:port url, it doesn’t work 127.0.0.1:port even with the machine name
– Rovann Linhalis
Everyone, thank you for taking the time to help me solve the problem. The problem was solved with the answer of fellow Gypsy Morrison Mendez. Thanks staff.
– Matheus Miranda