✅ Using localhost connection in xamarin
This motherfucker was working 10 seconds ago.
44 Replies
:SCshocked:
can someone go VC??
I solved this problem yesteday
now it simply decided it didnt want to work anymore
I wont fucking send all the images again
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
It decided to break dude 😭 this bitch
lol whatsup
theres no way man
its me again
same problem
ur doing the Cleartext way?
with http
or using dev tunnels
Im using tunnels
ah ok I never used tunnels so not sure I will be of much help but I just got this fresh from the oven
James Montemagno
.NET Blog
Dev Tunnels: A Game Changer for Mobile Developers - .NET Blog
See how Dev Tunnels can enhance your development process by securely sharing local web services across the internet and enabling you to easily connect to them from mobile apps, webhooks, and more.
see if this helps
I'm not even accessing via tunnels tho
:bigthonk:
I solved the problem by using http://ipv4:5100/endpoint
what error ur getting in first place
it worked, I implemented everything I needed
I launched the app once more
done. It decided it would be a bitch with me
refuses to connect
ok but does it throw any error?
timeout
wrap it on a try and catch
and see if the try out is becuase of the api or clear text
if its not because of the clear text
so we cut that one off
{System.Net.WebException: Failed to connect to localhost/127.0.0.1:5100 ---> Java.Net.ConnectException: Failed to connect to localhost/127.0.0.1:5100 at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00068] in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:11884 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeAbstractVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0001a] in
{Java.Net.SocketTimeoutException: failed to connect to /[MY IP ADRESS](port 5100) from /[MY IP ADRESSS] (port 48532) after 86400000ms: isConnected failed: ETIMEDOUT (Connection timed out) ---> Android.Systems.ErrnoException: isConnected failed: ETIMEDOUT (Connection timed out) --- End of inner exception stack trace --- at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00068] in
first one using localhost
second one using the method that worked befor
well I dont think u can do 127.0.0.1 on usb
u need to use say 192... or the network ip u get
This is the second one
was working
is it 192?
stoped working
yes
u can show 192 ip those are internal network ip they pose no risk to u
anyway
I assume then its your api
do u still have the 0.0.0.0 in the appsettings
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
what??
wtf???
I removed
placed again and tested again
same error
is it running in dev mode?
in which file ur adding it to?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
there is this
running in debbuging. both
if that works then u should be able to access in your browser
via 192....
It worked
It was there before, it is there now. I may be too dumb to understand what the fuck is going on
its alright 😉
but thanks guy
appreciate that
no worries
I hate to come here, with the same question
it happens
kinda embarassing
thanks a lot, you are the best!
sometimes we just overlook checking the simplest things in the heat of the battle
I usually work only web and API, this mobile shit is so hard for me kjafkjakaj
yep
Use the /close command to mark a forum thread as answered