B4J Question Sniffer ip

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
how you can make a program that works in the background listening on a particular port and you control the ip who connect?
It's possible?
Thanks
 

Roycefer

Well-Known Member
Licensed User
Longtime User
You can perform IP filtering in a standard Filter class in a B4J server program. Use
B4X:
req.RemoteAddress
to get the request's remote IP address.

Check out the IPLocator class to get some additional info about the IP address.
 
Upvote 0
Top