Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By Philimorr
#30460 I have written a simple test sketch for an ESP8266-01 which simply receives a UDP packet, extracts the sender's IP address and port using remoteIP() and remotePort() and sends it back to the sender. However, there is a problem as follows:

Local IP = 192.168.0.243 Local Port: 50000
Remote IP = 192.168.0.8 Remote Port: 50000

remoteIP() returns 192.168.0.7
remotePort() returns 53100

This is consistant and stops me using the above functions to address the return packet. If I set the address and port manually everything works as expected. I am using a fixed IP address and configuring my IP, Subnet, DNS and Gateway. I cannot fault the comms, just the addressing functions.

Can anyone please help?