Xamarin HttpClient requests returns Network is Unreachable HttpClientException after Reconnection to Internet - xamarin.forms

I'm creating a Xamarin Android App that is connected to an AP with internet, then has to connect to an AP with no internet connection, disconnects to it and resume connection to an AP with internet. However, when I try to do httpclient request again, I received an exception Network is Unreachable. Anyone has this experience and how were you able to make it work?
The Connectivity determines that Internet is Available but still reports Network is Unreachable.

Related

SIM5320A, device connected to 3G Network but can't ping server

I've been trying to make this SIM5320A module send HTTP requests to my server but even though it appears connected to the internet I can't seem to ping any server or make any requests.
I'm sending AT commands through a terminal on my Linux PC.
AT+CPIN appears READY
I've configured through the AT+CGDCONT, AT+SOCKSETPN = 1 and AT+CGSOCKCONT commands, adding my service provider's APN.
AT+NETOPEN returns OK. Running it again returns Network is already opened.
AT+CPSI? show's that it's connected to the WCDMA network and is online.
AT+IPADDR throws a proper IPv4 address.
So I'm trying to do AT+CPING="google.com",1 but it just won't connect.
I've even been able of sending a SMS and reading GPS coordinates, just failing in the internet stuff.
Am I missing any configuration steps? There is so little information online on this device.

does not connect to some sites, when connected to vpn windvoss

using a Windows server, I created a pptp vpn connection, but when connecting, for example, to YouTube, it displays an error that the waiting time was exceeded, to create a vpnk connection, I used this guide https://www.snel.com/support/how-to-set-up-a-vpn-with-windows-server/

How to make TCP socket connection work over WAN with different ISP?

I recently made a very basic TCP server application in C++ and Python using the very basic socket API. The client server connection happens flawlessly within the localhost as well as inside my LAN (within the same Wi-fi). But If I connect my client to an internet service (WAN) and try to connect to my server application behind my wifi (using the Wi-fi's public IP (provided by its ISP) and the port on which my server will be listening to) , I'm unable to get a connection. The server sits idle waiting for a connection ! I have enabled port forwarding on my Wi-fi, but still the results are all vain...
**EDIT: **
I managed to connect them over WAN, but now the ISP have to be the same... This is what I did: I made the server run on my Android device, bound it to the IP of my device that uses mobile data... The client sits behind a WiFi and connects to the Server using the previously mentioned IP and everything works fine ! But however if the client becomes an android app in another device with mobile data provided by different ISP everything fails !!! * So long as client runs behind a WiFi, but server connected to WAN (same ISP) the system works. *

HoloLens emulator connect to server on LAN

I have a websocket server running on a pc connected to the pc through a switch.
When I make a websocket client in the HoloLens with the IP of the server it doesn't connect. How come? I cannot ping the HoloLens emulator from the pc with the server but I can ping the pc running the emulator.
By default all interactions with the emulator are done through a 169.254.xxx.xxx address. This address is not externally routable. If you go to the networking menu option in the web portal for the emulator you should see two network adapters, one is the 169.254.xxx.xxx address and another is an address assigned via dhcp. My guess is that you don't have a second adapter and need to fix that in your Hyper V configuration for the emulator. If you do have that second adapter pinging that address will not work, because HoloLens does not run and ICMP server to respond to pings. A better test is to open Internet Explorer in the emulator and attempt to go to a valid web server address on your network. Here is what my settings look like as an example:

Web Sphere MQ 8.0 not connecting from home while same connects in office well

While I try to connect WMQ 8.0 from Home , It gives me error and getting failed while same Queue manager connects perfectly while I connect from office.
Queue manager name with host and port : MB8QMGR on '192.168.26.128(2414)'
Below is the error connection.
Could not establish a connection to the queue manager - reason 2538(AMQ4059).
kindly suggest me what's wrong with this.
In case you're not already aware, MQ Return Code 2538 is MQRC_HOST_NOT_AVAILABLE. This means that you have not managed to make the TCP/IP connection to your queue manager.
This is really a networking question rather than specifically an MQ question. Your question shows the IP address of the queue manager being a 192.168 address. This is a private network address. This means you can't connect to it from outside that network. You'll probably find that you have 192.168 addresses at home as well, but that does not mean you are on the same network.
My understanding is that even with a VPN getting you inside you company network, you still need a real IP address to connect to, but someone with more experience of private networks may be able to confirm. Talk to your network people at work and ask them how you should connect to the server your queue manager is on, from home. Once you can TCP/IP ping it successfully, then attempt to an MQ connection.

Resources