C
C#8mo ago
Raulino

✅ Using localhost connection in xamarin

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