Not in convenient built in way, but if you have a GatewayContext there's nothing stopping you from grabbing the SecurityZoneManager and doing something with it, like call getZonesFor() with some IdentityTraits you built using the IP address from the request header.
You should be able to figure this out from looking at the Javadoc, it's a necessary skill if you will be using classes from the SDK.
It would look something like this:
from com.inductiveautomation.ignition.gateway.authentication.securityzones import IdentityTraits
id = IdentityTraits.newBuilder.ipAddress(request["remoteAddr"]).build()
Another thing to keep in mind here is that the usefulness/accuracy of the remote address as seen by the WebDev module will depend entirely on your network architecture.
But when I try to build the IdentityTraits I got server error com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File "", line 8, in doGet AttributeError: 'reflectedfunction' object has no attribute 'ipAddress'