I want to connect Arduino WiFis via WiFi. As Server I'm using a UNO WiFi Rev2 and two Mkr 1010 as Clients (I know it doesn't matter which one is server and which is client).
As server I'm using the standard Arduino AP-programm similar to this:
https://www.arduino.cc/en/Reference/WiFi101BeginAP
As client I'm using the standard Arduino client programm:
https://www.arduino.cc/en/Reference/WiFiClient
Both are working, the server is accessable from a PC, the client connects to a WiFi network.
Problem:
The Arduino client doesn't connect to the Arduino server and I don't understand why. The client simply tries to connect to the network but can't build a stable connection.
Related
What I am trying to do is setup gsm modem and online server, so that when the server makes a request(using AT commands) to get the remaining balance of the modem's sim, the modem would run a ussd code and send the results back to the server(it runs 24/7). But I don't know how modems could create a connection with a server without being connected to a pc. I need help?
Can My Program Detect if the connected Client Socket on Port, say '4000', is over LAN (Local) or WAN (Remote) ?
Can InternetGetConnectedStateEx command help ?
I need it to understand if my customer is using LAN edition of my Application over WAN.
I use Delphi Seattle on Windows OS.
Regards
Allan
ALL clients connected to your server are on the same LAN as your server, otherwise they couldn't reach your server at all. But, in the case of a client connecting from the outside world through a NAT/router, the end client will be connected to the NAT/router, and then the NAT/router will be connected to your server. So, if you want to know if a client is connected to your server via the WAN, your server will need to know/discover the NAT/router's LAN IP address ahead of time, and then it can check whether a connected client's IP address matches the NAT/router's IP address or not.
I am using raspberry pi
I am using signalR to send data to my client browser.
If my raspberry is on the same network via Ethernet or WiFi then I can get it to work.
If I now disconnect Ethernet and WiFi and switch on my gsm module I get assigned a dhcp address like 10.126.88.4 etc
If I now go to a client browser and type that ip address in the browser it will eventually time-out and upon investigation I find the raspberry pi has been assigned a different IP address.
This happens every time I refresh the browser.
After googling I find that it is the network providers doing this to stop the gsm being used as a server gateway.
One of the solutions is to use a proxy server but I could potentially have a lot of data passing through and
my initial idea was to have client browser talking directly to the raspberry pi device using gsm and thus not going through my own server.
Is there a solution to my predicament?
I configured hostapd to make an Access Point Wi-Fi network on my raspberry pi... everything works fine. It acts like a router.
Can i bind client devices via WPS? For example phones, ESP8266 that support WPS connections?
I am working on altera FPGA and have written a client application on uclinux. I have also written server client application in Python. My FPGA Client is able to connect with Python server but it is unable to connect when server is placed on a remote location passing more than one router.
If any one having idea where the probable mistake is and ways to debug the issue