After reading: Getting the 'external' IP address in Java
code:
public static void main(String[] args) throws IOException { URL whatismyip
A 403 response indicates that the server is explicitly rejecting your request for some reason. Contact the operator of WhatIsMyIP for details.