C
C#12mo 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
TheRanger12mo ago
where did you get port 7038 from
TollieBonker
TollieBonker12mo ago
it was generated defualt idk how to change it lol in my code
TheRanger
TheRanger12mo ago
default is usually 5000, 5001
TollieBonker
TollieBonker12mo ago
its not in the appsettings
TheRanger
TheRanger12mo ago
ur running web forms?
TollieBonker
TollieBonker12mo ago
oh fr? i just launched it nothing edited no asp.net core model vieuw
TheRanger
TheRanger12mo ago
it worked?
TollieBonker
TollieBonker12mo ago
TollieBonker
TollieBonker12mo ago
yea but i want to acces it from other local devices on ip but it aint working on my pc
TheRanger
TheRanger12mo ago
you have to include your LAN IP i have an example in my pc wait
TollieBonker
TollieBonker12mo ago
great i geuss i ddi anything right i even asked chatgpt
TheRanger
TheRanger12mo ago
show ur Program.cs
TollieBonker
TollieBonker12mo ago
its defualt
TheRanger
TheRanger12mo ago
and ur appsettings.json
TollieBonker
TollieBonker12mo ago
also defualt
TheRanger
TheRanger12mo 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
TollieBonker12mo ago
alr
TollieBonker
TollieBonker12mo ago
oehhh great its working!
TollieBonker
TollieBonker12mo ago
how can i see the web page on ip like on my phone or tablet by searching the ip right?
TheRanger
TheRanger12mo ago
you connected through LAN and it worked?
TollieBonker
TollieBonker12mo ago
via localhost but am gonna google the ip now
TheRanger
TheRanger12mo ago
what ip ur LAN ip is stored in your pc you can't google that
TollieBonker
TollieBonker12mo ago
yes i know like this: but it aitn working
TheRanger
TheRanger12mo ago
open cmd
TollieBonker
TollieBonker12mo ago
TheRanger
TheRanger12mo ago
yeah 192.168.0.230 is ur ip
TollieBonker
TollieBonker12mo ago
yea so i did http://ip:port
TheRanger
TheRanger12mo ago
https://192.168.0.230:5001 no 5001 for https 5000 for http
TollieBonker
TollieBonker12mo ago
ahhhh great!!!!
TollieBonker
TollieBonker12mo ago
thanks!!!
TheRanger
TheRanger12mo ago
now ur LAN mates should access ur website normally
TollieBonker
TollieBonker12mo ago
alright great thanks for helping me out!!!!! appreciate it!!!! ❤️
TheRanger
TheRanger12mo ago
np
TollieBonker
TollieBonker12mo 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
TheRanger12mo ago
sure
TollieBonker
TollieBonker12mo ago
or wait i need a quick dns sorry other solution works i cant reach it http?
TollieBonker
TollieBonker12mo ago
why is this not working @theranger.
TollieBonker
TollieBonker12mo ago
i thought i set it up good but i cant acces the http
TheRanger
TheRanger12mo ago
is your server even running?
TollieBonker
TollieBonker12mo ago
TollieBonker
TollieBonker12mo ago
yeas?
TollieBonker
TollieBonker12mo ago
TollieBonker
TollieBonker12mo ago
@theranger. everything is running but i cant reach the http somhow
TollieBonker
TollieBonker12mo ago
or do i need to disable ssl?
TheRanger
TheRanger12mo ago
dunno, there might be some issue
TollieBonker
TollieBonker12mo ago
hmm
TheRanger
TheRanger12mo ago
does localhost:80 work?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
nope
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
IsNotNull
IsNotNull12mo ago
The ports might be blocked by your firewall from incoming
TollieBonker
TollieBonker12mo ago
but how can i reach the http?
IsNotNull
IsNotNull12mo 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
TollieBonker12mo ago
so i cant just acces the http on my ip?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
how can i enable it? like port 80? so it can go trough
MODiX
MODiX12mo ago
TeBeCo
given you're respecting firewall
Quoted by
React with ❌ to remove this embed.
IsNotNull
IsNotNull12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
ahhh alright
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
should i make it a dns? so i dont have the msg?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
maybey can i use http on a port i can reach?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
alright so like this
TollieBonker
TollieBonker12mo ago
TollieBonker
TollieBonker12mo 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
TollieBonker12mo ago
TollieBonker
TollieBonker12mo ago
tf it still redirects me to this stupid https://192.168.0.230:7038/
Kao
Kao12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View
TollieBonker
TollieBonker12mo ago
i figured it out
TollieBonker
TollieBonker12mo ago
i needed to remove the redirect
TollieBonker
TollieBonker12mo ago
thanks for helping yall ❤️
TollieBonker
TollieBonker12mo ago