Can Mini Program\ h5 obtain the IP address of the client?

demand:

IPIP,
:
     1IP
     2H5
     3phpPCip
     
 

neither Mini Program nor H5's client code can obtain the ip address, but both can obtain the ip on the server side. The method of obtaining the ip on the server side depends on the server used.

of course, if you are developing in Wechat, you can try to use Wechat's own authorization mechanism, so that a large number of malicious requests can be filtered through Wechat's authorization mechanism. Instead of letting your server filter directly


Mini Program does not understand that the client ip address can be obtained by sending a request to some websites, such as ifconfig.me, but it is only a public network address.


. Learn the TCP/IP protocol


you confirm one thing first. When a user initiates a CAPTCHA request, is it client-> SMS server or client-> Wechat server-> SMS server

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35c35-2bfb7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35c35-2bfb7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?