how to setup to internet connections in one wifi - modem

I have adsl internet connection run on dlink modem and has wifi with getway 192.168.1.1 and fiber internet run on Huawei with getway 192.168.100.1. Both modems have wifi and I have two wifis in home. Any body knows how to connect them and use one wifi and select between internets with changing gateway?
Thanks in advance

Related

How to automatically connect to WiFi once ethernet stops working

So my problem is fairly easy:
The wired ethernet connection stops working from time to time but stays connected.
What I want to do is keep the WiFi turned off, or at least disconnected, as long as the ethernet is working and provides an active connection to the internet.
Once the ethernet loses connection, so e.g. a timeout to DNS or something similar the WiFi-Adapter should be turned on/ connect to the network.
The ethernet cable stays connected, just no uplink.
The Wifi would connect to a different network. The wired network is connected to a hardware-firewall, while the WiFi would connect to a private hotspot from a fritzbox.
Are there any working solutions to this day?

Is it possible to bridge ssh through a 4G connection?

My case is the following: I will install some prototypes connected together with wifi (one device is the AP) in a distant site. I'd like to be able to remotely connect to my network for avoiding to travel.
As there will be 4G networks available there, I was wondering if a simple solution could be to have a smartphone connected to my wifi network, and use it to forward ssh client requests through 4G connection.
I have no idea if it's possible, how/depending on network operators, if there are standards and software (preferably android) for doing so.
Sorry it this question remains a bit vague, but any pointers would be appreciated.
There are also some 4G boxs that provide internet as wifi AP. I could change my network to connect to it, but I have no idea if I can reliabily get an address to this.
Thanks for your help.
A VPN server might be an option. Like DD-WRT on a router, or your own dedicated VPN server.

Is there any possibility to connect with Raspberry PI 2 through the mobile network

I am currently working on internet of things technology, in one of my scenarios I want to connect raspberry pi2 through the mobile network.
Please tell me is there any possibility to connect with raspberry pi2 through the mobile network.
Regards,
Pradeep
You can connect your Pi2 to a mobile network using either a USB 3G Dongle or a 3G Shield.
You will have to play around with the setup though to see how it works for you.
If you want to access your Pi2 from elsewhere while connected to a mobile network you will also need to setup dynamic ip resolution for your Pi if you do not have a fixed ip assigned by your mobile operator.
If, however you want to connect from a mobile device to your Pi2 which is located on a LAN, you will need to configure port forwarding on your router for the Pi2 to receive communication from the outside world. Once again, if your router does not have a fixed ip supplied by your ISP, you will need to setup a dynamic ip resolution (DDNS).
Hope this helps.

GCDAsyncUdpSocket UDP communication over internet

I have a problem using GCDAsyncUdpSocket over internet. Everything works fine when I am doing test on my local computer.
I try to to send UDP message between a computer connected to internet with a 3G key and an Ipod connected through wifi. Unfortunately the message are not transmitted. I tried to do the same test with the example of GCDAsyncUdpSocket : UdpEchoClient and UdpEchoServer, and it is also not working.
To know the address IP of my computer with the 3G key, I looked on system preferences -> network, I also looked on http://whatismyipaddress.com/ , I saw that the adresses were different. With both it is not working.
My Ipod connected through wifi is behind a NAT/Firewall, but according to this website : https://www.gotroot.com/blogpost4-Why-your-should-never-forward-UDP-out-of-your-firewall It shouldnt be a problem.
Is it possible to send message between 2 devices without opening any port?
Why do you have two different IP addresses on my computer with 3G?

iPhone sockets working over WIFI but not 3G

I have a native iPhone app that connects to a client machine via sockets. The connection works over WIFI but does not work over 3G.
Does anyone have ideas what the issue could be?
Thank you.
UPDATE: The client machine is not on the same network as the iPhone.
Is this client machine within the same network as the iPhone? Then you can access it over Wifi, but would need a proxy over 3G. Just a guess.
The issue is that some cellular networks block certain ports. This is why it worked over WIFI but not 3g. One of the reasons why it is better to use web services.