# micropython nodemcu webpage problem

#### yef smith

Joined Aug 2, 2020
348
Hello,i have used micropython to create wifi accsses point as shown bellow.It works.
I lack the definition of the web page design.
My goal is to connect the network shown bellow,then enter an IP address into the webpage and see a variable printed on the web page.
I tried to use this manual but its too complicated i entered the code ,and its not connecting to the web page ,although i connected to the WIFI network.
I need a command for defining IP and a command for printing variables on the webpage.
Is there some one who can reccomnd me a source?
Thanks.
https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/

Code:
ap_if = network.WLAN(network.AP_IF)
ssid = 'MicroPython-AP23'
ap_if.active(True)
ap_if.config(essid=ssid, password=password)

#### yef smith

Joined Aug 2, 2020
348
Hello Ian, that is the point got so far.I have succseeded defining the HOTSPOT but i dont know how to present on the webpage of the IP a value of a variable.
Is there some setting regarding it?

#### Ian Rogers

Joined Dec 12, 2012
992
Further on the page there is a whole host of socket programming examples...

#### yef smith

Joined Aug 2, 2020
348
Hello Ian, I have managed to asemble the following code shown bellow,with socket as shown below
i enter the wifi network,then i write the IP adrress( i tried them both) and nothing.

Code:
import network
import usocket as socket
ap_if = network.WLAN(network.AP_IF)
ssid = 'MicroPython-AP29'
ap_if.active(True)

s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind(('',80))
s.listen(5)
while True:
conn.close()