Starting NetLogo behind Proxy

141 views
Skip to first unread message

Dapeng Dong

unread,
Aug 26, 2024, 11:47:41 AM8/26/24
to netlogo-users
Dear NetLogo Developers,

I'm wondering if there is a way to disable NetLogo's behavior of connecting to the Internet when starting up. Whenever I launch NetLogo on a remote server that is behind a proxy, it takes very long time to load. 

Thank you!
 

Michael Tamillow

unread,
Aug 26, 2024, 12:46:16 PM8/26/24
to Dapeng Dong, netlogo-users
Netlogo connects to the internet when starting up?

Since when??

--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/013b2fc1-4cae-43ff-a650-c7e39a467282n%40googlegroups.com.

Michael DeBellis

unread,
Aug 26, 2024, 2:15:36 PM8/26/24
to Michael Tamillow, Dapeng Dong, netlogo-users
I just disabled my network and started Netlogo and it worked fine. I also looked through the documentation: https://ccl.northwestern.edu/netlogo/docs/  for "Internet" and "url" and didn't find anything. The one thing I found when I searched for "network" that seemed relevant was: 

Environment:
Command center for on-the-fly interaction
Interface builder w/ buttons, sliders, switches, choosers, monitors, text boxes, notes, output area
Info tab for annotating your model with formatted text and images
HubNet: participatory simulations using networked devices

So it looks like there is a version called HubNet if you want to do models distributed across the Internet but I don't think the default version goes out to the Internet. Are you perhaps trying to access some version that was loaded on a server at your school or work? 

Michael

Dapeng Dong

unread,
Aug 29, 2024, 8:53:47 AM8/29/24
to netlogo-users
Michael,

Thanks for pointing out the HubNet part.
I don't use HubNet. I just simply started the 'standard' NetLogo. I've tested it on my laptop. When I use my personal internet connection or just disable the network connections, NetLogo works fine, but when I connect my laptop to our internal network, it takes a very long time to load.

Dapeng

Michael Tamillow

unread,
Aug 29, 2024, 9:38:08 AM8/29/24
to Dapeng Dong, netlogo-users
It’s probably your internal network’s security.

Sent from my iPhone

On Aug 29, 2024, at 7:53 AM, Dapeng Dong <dapeng....@gmail.com> wrote:



Greg Skyles

unread,
Aug 29, 2024, 1:37:02 PM8/29/24
to netlog...@googlegroups.com

It might be that your 'institution' has some sort of EDR agent installed on your system that treats the netlogo program as something suspicious when you are on their network.

You could look at using the Sysinternal tools (I'm assuming you are on Windows) especially Process Explorer to find out what your system is actually doing (or not) while you are waiting for Netlogo to load up.

https://learn.microsoft.com/en-us/sysinternals/

Cheers, Greg

To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/3998c376-f4f4-4a8a-9ab2-5fed60b8cd71n%40googlegroups.com.
-- 
----------
Please note my email address has changed to gssk...@acm.org

Aaron Andre Brandes

unread,
Aug 30, 2024, 4:41:20 PM8/30/24
to Dapeng Dong, netlogo-users

Hi,

NetLogo makes a request over the network to update information about extensions and their latest versions.

I know of one other case where the user of a linux server had a similar issue.

 

One can turn off this request by setting the java preference netlogo.libraries.disabled=true 

 

One way to do this is to edit the NetLogo configuration file which for MacOS is "NetLogo 6.4.0.app/Contents/app/NetLogo 6.4.0.cfg"

 

You can locate the file on a Linux system by cd’ing to the NetLogo installation directory in a terminal and executing

find . -name "*.cfg"

 

Then add this line to the section with java-options (order doesn’t matter)

java-options=-Dnetlogo.libraries.disabled=true

 

Note that there is a separate file for NetLogo3D.

 

 

Alternatively you could add the additional java preference directly into the netlogo_gui.sh or netlogo_headless.sh scripts

 

JVM_OPTS=(-XX:MaxRAMPercentage=50 -Dfile.encoding=UTF-8   -Dnetlogo.libraries.disabled=true -Dnetlogo.extensions.dir="${BASE_DIR}/extensions" -Dnetlogo.models.dir="${BASE_DIR}/models" --add-exports=java.base/java.lang=ALL-UNNAMED --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.desktop/sun.java2d=ALL-UNNAMED  --add-exports=java.desktop/com.apple.laf=ALL-UNNAMED)

 

You can set the value to false, or remove that preference if you want to allow the updates.

 

Please let us know if this solves your problem.

 

  • Aaron

 

 

-- 

Aaron Brandes, Software Developer

Center for Connected Learning and Computer-Based Modeling

 

 

Dapeng Dong

unread,
Sep 2, 2024, 3:22:39 PM9/2/24
to netlogo-users
Thanks to everyone for your suggestions, especially to Aaron. Your solution works perfectly for me!!!
For anyone experiencing the same issue on Linux (Ubuntu 20.04LTS), the config files are in the "NetLogo-6.04.0-64/lib/app/" folder.

Best,
Dapeng

Stephen Guerin

unread,
Oct 25, 2024, 11:17:35 AM10/25/24
to Dapeng Dong, netlogo-users
Reply all
Reply to author
Forward
0 new messages