Problems with the local server and Arduino Mega

Your screenshots are basically useless for seeing necessary information :roll_eyes:

Pasting full and properly formatted code here would be better.

What ports are you using for the App & Device (sketch)?

App needs to be 9443

Device needs to be 8080

You may also need to make some changes on your Local Server and/or router.