old_contents: from ipy import app
  from flask import request, jsonify
  from flask_limiter.util import get_remote_address
  
  
  @app.route('/', methods=['GET'])
  def get_ip():
      format = request.args.get('format', None)
      ip = get_remote_address()
      if format == 'json':
          ip = jsonify(ip=ip)
      return ip
  
  
  if __name__ == '__main__':
      app.run()
  
new_contents: from ipy import app
  from flask import request, jsonify
  from flask_limiter.util import get_remote_address
  
  
  @app.route('/', methods=['GET'])
  def get_ip():
      format = request.args.get('format', None)
      ip = get_remote_address()
      if format == 'json':
          ip = jsonify(ip=ip)
      return ip
  
subject: Remove debugging