We need to pass proxyHost and port as arguments to the JVM ( Project settings --> Configurations --> server--> Extra JVM params) in modeler.
ex:
-Dhttp.proxyHost=58.2.40.198 -Dhttp.proxyPort=3120 -Dhttps.proxyHost=58.2.40.198 -Dhttps.proxyPort=3120