Advertisement
mashiahd

py/def - Source IP Formatted

Nov 13th, 2023
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def formatted_ip():
  2.     # Get the source IP address
  3.     source_ip = request.remote_addr
  4.     return 'Your IP address is {}'.format(source_ip)
Tags: def source ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement