C
C#17mo ago
TollieBonker

✅ ASP.net i cant acces my localhost

why this aint workin? its al correct i want to acces it bcs i want to display it on my tablet on the wall but i even cant reach it on my pc how is that possible?
82 Replies
TheRanger
TheRanger17mo ago
where did you get port 7038 from
TollieBonker
TollieBonkerOP17mo ago
it was generated defualt idk how to change it lol in my code
TheRanger
TheRanger17mo ago
default is usually 5000, 5001
TollieBonker
TollieBonkerOP17mo ago
its not in the appsettings
TheRanger
TheRanger17mo ago
ur running web forms?
TollieBonker
TollieBonkerOP17mo ago
oh fr? i just launched it nothing edited no asp.net core model vieuw
TheRanger
TheRanger17mo ago
it worked?
TollieBonker
TollieBonkerOP17mo ago
TollieBonker
TollieBonkerOP17mo ago
yea but i want to acces it from other local devices on ip but it aint working on my pc
TheRanger
TheRanger17mo ago
you have to include your LAN IP i have an example in my pc wait
TollieBonker
TollieBonkerOP17mo ago
great i geuss i ddi anything right i even asked chatgpt
TheRanger
TheRanger17mo ago
show ur Program.cs
TollieBonker
TollieBonkerOP17mo ago
its defualt
TheRanger
TheRanger17mo ago
and ur appsettings.json
TollieBonker
TollieBonkerOP17mo ago
also defualt
TheRanger
TheRanger17mo ago
try adding this
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
},
"Https": {
"Url": "https://0.0.0.0:5001"
}
}
}
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
},
"Https": {
"Url": "https://0.0.0.0:5001"
}
}
}
TollieBonker
TollieBonkerOP17mo ago
alr
TollieBonker
TollieBonkerOP17mo ago
oehhh great its working!
TollieBonker
TollieBonkerOP17mo ago
how can i see the web page on ip like on my phone or tablet by searching the ip right?
TheRanger
TheRanger17mo ago
you connected through LAN and it worked?
TollieBonker
TollieBonkerOP17mo ago
via localhost but am gonna google the ip now
TheRanger
TheRanger17mo ago
what ip ur LAN ip is stored in your pc you can't google that
TollieBonker
TollieBonkerOP17mo ago
yes i know like this: but it aitn working
TheRanger
TheRanger17mo ago
open cmd
TollieBonker
TollieBonkerOP17mo ago
TheRanger
TheRanger17mo ago
yeah 192.168.0.230 is ur ip
TollieBonker
TollieBonkerOP17mo ago
yea so i did http://ip:port
TheRanger
TheRanger17mo ago
https://192.168.0.230:5001 no 5001 for https 5000 for http
TollieBonker
TollieBonkerOP17mo ago
ahhhh great!!!!
TollieBonker
TollieBonkerOP17mo ago
thanks!!!
TheRanger
TheRanger17mo ago
now ur LAN mates should access ur website normally
TollieBonker
TollieBonkerOP17mo ago
alright great thanks for helping me out!!!!! appreciate it!!!! ❤️
TheRanger
TheRanger17mo ago
np
TollieBonker
TollieBonkerOP17mo ago
can i make it port 80 and http? bcs i need it to be http so my device can open it on commando and skip te security message
TheRanger
TheRanger17mo ago
sure
TollieBonker
TollieBonkerOP17mo ago
or wait i need a quick dns sorry other solution works i cant reach it http?
TollieBonker
TollieBonkerOP17mo ago
why is this not working @theranger.
TollieBonker
TollieBonkerOP17mo ago
i thought i set it up good but i cant acces the http
TheRanger
TheRanger17mo ago
is your server even running?
TollieBonker
TollieBonkerOP17mo ago
TollieBonker
TollieBonkerOP17mo ago
yeas?
TollieBonker
TollieBonkerOP17mo ago
TollieBonker
TollieBonkerOP17mo ago
@theranger. everything is running but i cant reach the http somhow
TollieBonker
TollieBonkerOP17mo ago
or do i need to disable ssl?
TheRanger
TheRanger17mo ago
dunno, there might be some issue
TollieBonker
TollieBonkerOP17mo ago
hmm
TheRanger
TheRanger17mo ago
does localhost:80 work?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
nope
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
IsNotNull
IsNotNull17mo ago
The ports might be blocked by your firewall from incoming
TollieBonker
TollieBonkerOP17mo ago
but how can i reach the http?
IsNotNull
IsNotNull17mo ago
If you are trying to do actual networking, you need to go through an entire checklist of things that is different than local dev
TollieBonker
TollieBonkerOP17mo ago
so i cant just acces the http on my ip?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
how can i enable it? like port 80? so it can go trough
MODiX
MODiX17mo ago
TeBeCo
given you're respecting firewall
Quoted by
React with ❌ to remove this embed.
IsNotNull
IsNotNull17mo ago
And given that your devices are on the same subnet, that you don't have a network firewall, that your cert is trusted if you are using HTTPS/TLS, etc...
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
i can reach the https but i use homey and in the flow i cant stream it bcs i got a security message if i go to my ip
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
ahhh alright
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
should i make it a dns? so i dont have the msg?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
i cant send this url to stream to a device bcs i think the message but what if i make it a dns? does the msg go away
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
oke situattion: i use homey to cast this site to a screen on the wall but when i stream this url it doesnt load sorry for bad english i think of the security message it needs to be http or a website like pornhub.com like a big one
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
maybey can i use http on a port i can reach?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
alright so like this
TollieBonker
TollieBonkerOP17mo ago
TollieBonker
TollieBonkerOP17mo ago
it aitn working and i got set back to the https from default if i reach to the http it gives me this https://192.168.0.230:7038/
TollieBonker
TollieBonkerOP17mo ago
TollieBonker
TollieBonkerOP17mo ago
tf it still redirects me to this stupid https://192.168.0.230:7038/
Kao
Kao17mo ago
Check your startup.cs if you haven't done that yet And remove the httpsredirect() line that should be near the end of file
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonkerOP17mo ago
i figured it out
TollieBonker
TollieBonkerOP17mo ago
i needed to remove the redirect
TollieBonker
TollieBonkerOP17mo ago
thanks for helping yall ❤️
TollieBonker
TollieBonkerOP17mo ago
Want results from more Discord servers?
Add your server