C
C#2mo ago
Raulino

✅ Using localhost connection in xamarin

This motherfucker was working 10 seconds ago.
44 Replies
Waffles from Human Resources
:SCshocked:
Raulino
Raulino2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Raulino
Raulino2mo ago
It decided to break dude 😭 this bitch
leowest
leowest2mo ago
lol whatsup
Raulino
Raulino2mo ago
theres no way man its me again same problem
leowest
leowest2mo ago
ur doing the Cleartext way? with http or using dev tunnels
Raulino
Raulino2mo ago
Im using tunnels
leowest
leowest2mo ago
ah ok I never used tunnels so not sure I will be of much help but I just got this fresh from the oven
leowest
leowest2mo ago
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.
leowest
leowest2mo ago
see if this helps
Raulino
Raulino2mo ago
I'm not even accessing via tunnels tho
leowest
leowest2mo ago
:bigthonk:
Raulino
Raulino2mo ago
I solved the problem by using http://ipv4:5100/endpoint
leowest
leowest2mo ago
what error ur getting in first place
Raulino
Raulino2mo ago
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
leowest
leowest2mo ago
ok but does it throw any error?
Raulino
Raulino2mo ago
timeout
leowest
leowest2mo ago
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
Raulino
Raulino2mo ago
{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
leowest
leowest2mo ago
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
Raulino
Raulino2mo ago
This is the second one was working
leowest
leowest2mo ago
is it 192?
Raulino
Raulino2mo ago
stoped working yes
leowest
leowest2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Raulino
Raulino2mo ago
what?? wtf??? I removed placed again and tested again same error
leowest
leowest2mo ago
is it running in dev mode? in which file ur adding it to?
leowest
leowest2mo ago
No description
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
leowest
leowest2mo ago
there is this
Raulino
Raulino2mo ago
running in debbuging. both
leowest
leowest2mo ago
No description
leowest
leowest2mo ago
if that works then u should be able to access in your browser via 192....
Raulino
Raulino2mo ago
It worked It was there before, it is there now. I may be too dumb to understand what the fuck is going on
leowest
leowest2mo ago
its alright 😉
Raulino
Raulino2mo ago
but thanks guy appreciate that
leowest
leowest2mo ago
no worries
Raulino
Raulino2mo ago
I hate to come here, with the same question
leowest
leowest2mo ago
it happens
Raulino
Raulino2mo ago
kinda embarassing thanks a lot, you are the best!
leowest
leowest2mo ago
sometimes we just overlook checking the simplest things in the heat of the battle
Raulino
Raulino2mo ago
I usually work only web and API, this mobile shit is so hard for me kjafkjakaj yep
MODiX
MODiX2mo ago
Use the /close command to mark a forum thread as answered