[riot-notifications] [RIOT-OS/RIOT] TCP lwIP Error Connecting Sock Problem (#11910)

mmaxus35 notifications at github.com
Wed Jul 24 19:35:48 CEST 2019


> 
> 
> (I took the freedom to edit OP for better readability)

Thanks for your help.


> 
> 
> @miri64
> 
> > I took the freedom to edit OP for better readability
> 
> Thanks, @mmaxus35 has still problems with the markup language 😉
> 
> Yes, the current ESP8266 port has problems with the `lwIP` package. That's why all ESP8266 boards are blacklisted. BTW, with the complete reimplementation of the ESP8266 port in PR #11108 which is waiting for review, it will not be a problem any longer.
> 
> But, there shouldn't be any problem with ESP32 and `lwIP`. The problem seems not to be related to the ESP32 board. According to @mmaxus35, the board has WiFi connectivity. He can ping the board and the UDP lwIP socket example works.
> 
> @mmaxus35 Are you sure that your TCP server is running on `fe80::4c2c:2f99:9ae8:73cb` and is listening at port `12345`? Can you see an according entry when you use command
> 
> ```
> netstat -tulpen
> ```
> 
> on this machine?

Of course, fe80::4c2c:2f99:9ae8:73cb is running in Java in my Windows PC adnd i can send packets using another programs like "Packet Sender" and they are received and messages displayed to screen. Here is the java code that i use

```
 import java.io.*;
import java.net.*;
 
class TCPServer
{
         String capitalizedSentence;
   public static void main(String argv[]) throws Exception
      {
         String clientSentence;
         String capitalizedSentence;
         ServerSocket welcomeSocket = new ServerSocket(12345);

 
         while(true)
         {
            Socket connectionSocket = welcomeSocket.accept();
            BufferedReader inFromClient =
               new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
            DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());
            clientSentence = inFromClient.readLine();
            System.out.println("Received: " + clientSentence);
            capitalizedSentence = clientSentence.toUpperCase() + '\n';
            outToClient.writeBytes(capitalizedSentence);
         }
      }
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11910#issuecomment-514728074
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190724/41eec9c7/attachment-0001.htm>


More information about the notifications mailing list