• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 LAN port number

Q&A Forum › Category: ESP32 › ESP32 LAN port number
0 Vote Up Vote Down
Paul asked 6 years ago

Hi,
I need to access to my ESP32 remotely. The ESP32 configuration has already an fixed LAN IP address but the router asks for a LAN port number.
So I’m wondering if there is any method to assign a LAN port number to a ESP32 connected via WiFi.
Hope you can help me.

Question Tags: LAN port number
2 Answers
0 Vote Up Vote Down
DK answered 6 years ago

Hi
Port Number is basically the type of app your esp32 is running
 
http://www.meridianoutpost.com/resources/articles/well-known-tcpip-ports.php
 
So if you are running a webserver, the server code defines the Port Number ie 80,
But this number came be other numbers too ie 88 or 89, but the client must be 88 or 89,
so that there can create a Socket
 
https://randomnerdtutorials.com/esp32-web-server-arduino-ide/
 
here the Port Number is set to 80


// Set web server port number to 80
WiFiServer server(80);



0 Vote Up Vote Down
Paul answered 6 years ago

Thanks a lot.
Paul

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.