# HubNet Connection Problem

**URL:** <https://forum.netlogo.org/t/hubnet-connection-problem/733>\
**Category:** Programming Q&A\
**Created:** [January 15, 2026, 11:57am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733 "2026-01-15T11:57:59Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [January 15, 2026, 11:57am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/1 "2026-01-15T11:57:59Z")

</div>

Hi everyone,

I am trying to use HubNet for some educational activities, but I can not get the connection to work. The Desktop version does not see the host on the network, and entering the IP address also does not work. On the web version I can host a model, and others can see it. However, when they try to connected they get “connection to host lost” error messages. I tried several different machines and browsers, but no luck. Can anyone help?

Best regards from Berlin,

Ferdi

---

<div class="post-metadata">

**Author:** ![Jason](https://forum.netlogo.org/user_avatar/forum.netlogo.org/jason/32/209_2.png) [@Jason](https://forum.netlogo.org/u/Jason)\
**Post date:** [January 20, 2026, 4:53pm UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/2 "2026-01-20T16:53:34Z")

</div>

Desktop HubNet can be tricky, because it’s not very robust in the face of complex network configurations. Without knowing more about the specific network, my first guess would be that there’s some IT sorcery that is causing your network (probably a school network) to look like it’s one big LAN, when it’s actually a bunch of different LANs, with different people assigned to each. And that confuses HubNet, leaving it unable to find people.

If you really want to make desktop HubNet work, you might be able to work around this by having each machine install [Hamachi](https://vpn.net/) (which allows you to simulate a LAN over internet). Or maybe you could bring your own router for everyone in the activity to connect to? I know that neither of these solutions are nice.

HubNet Web is intended to make this situation monumentally better. I don’t have any memory of any “connection to host lost” problem like what you’re describing, but I also happen to have made HubNet Web, so I’m much more capable of helping with it, given some more information.

Are you able to get HubNet Web to work with _any_ model? Or are you only running into this issue with your specific model that you’re uploading?

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [January 21, 2026, 7:41am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/3 "2026-01-21T07:41:04Z")

</div>

Hi Jason,

Sounds like I am talking to the right person. Thanks for your reply.

HubNet Web would be just fine with me. It would avoid having everyone install the program, so a preferable solution from that perspective. Unfortunatly I can not get that to work either. I just tried again, using the Disease model. I can Host and Join from the same computer, but another computer gets the same error message. I attach here some screenshots.

Thanks,

Ferdi

[HubNet Problem 2026.pdf](https://forum.netlogo.org/uploads/short-url/2ugK7P1EW4cp3Jv5Sq3oIwTf1FU.pdf) (525.6 KB)

---

<div class="post-metadata">

**Author:** ![Jason](https://forum.netlogo.org/user_avatar/forum.netlogo.org/jason/32/209_2.png) [@Jason](https://forum.netlogo.org/u/Jason)\
**Post date:** [January 22, 2026, 5:13pm UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/4 "2026-01-22T17:13:43Z")

</div>

Thanks for the PDF. This is helpful!

Judging by the picture labeled “Computer 1: Joining”, I’m guessing that you’re allowing the “Host” tab to become (and stay) hidden. After your first time doing this, you should have gotten some dialog box, warning you to not do this. But maybe it didn’t appear like it was supposed, or I failed to do a good job of explaining the problem and solution. For whatever it’s worth, I also wrote about it in the FAQ [here](https://hubnetweb.org/docs/faq#client-doesnt-update), but I’ll explain it again here.

Basically: Web browsers de-prioritize allocating resources (like CPU) to tabs that don’t currently have visible content. For most things, that’s good. Even for something like NetLogo Web, that’s usually good. But when it comes to using the browser as a client (or especially as a _host_) in a real-time activity, that’s **bad**. If the browser is not giving the tab resources, it cannot send the messages that it needs to, in order to keep the connections with the other clients alive.

The solution to that problem is an easy one, though: Open the “host” tab in its own window of your browser, and ensure that at least one pixel of that tab is visible on your screen at all times.

Please try that and let me know if your connection issues persist.

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [January 23, 2026, 4:20pm UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/5 "2026-01-23T16:20:56Z")

</div>

Hi Jason,

Yes, now it works. I have to always keep the hosting browser active, otherwise we get the lost connection. OK, I can work with that. Just have to be careful on the instructor side.

Thanks for your help!

Ferdi

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [February 6, 2026, 5:02am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/6 "2026-02-06T05:02:11Z")

</div>

Hi Jason,

I have another problem. When I am trying to upload my own model via HubNet Web I get the error message “Invalid files for upload”. Previously I just used the “Library Models” button on the interface to test my connection issue (which works, see above), not the “Your Own Model” button. I wondered if something is wrong with my model, so I tried it with one of the models from the library. There I get the same error. I tried it with models downloaded via version 7.0.3 and 6.4.0 (different error message). Please see the attached.

Thanks in advance,

Ferdi

[HubNet Problem 2026 b.pdf](https://forum.netlogo.org/uploads/short-url/efSj290Ra59x87me7QI4XHv7B4s.pdf) (279.1 KB)

---

<div class="post-metadata">

**Author:** ![Jason](https://forum.netlogo.org/user_avatar/forum.netlogo.org/jason/32/209_2.png) [@Jason](https://forum.netlogo.org/u/Jason)\
**Post date:** [February 6, 2026, 5:39pm UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/7 "2026-02-06T17:39:47Z")

</div>

Alright. Support for Netlogo 7’s file format isn’t 100% complete yet, in HubNet Web. NetLogo 6 is the better starting place, for now.

The reason your NetLogo 6 model produces errors is that HubNet Web models get programmed substantially differently from standard HubNet models. Ideally, it’s a much easier programming model. But conversion is required from HubNet format to HubNet Web format.

Could you send me the model (saved from NetLogo 6.4.0), and I can help in converting it? You can send it to me in private messages, if you don’t want to post it in this thread.

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [February 8, 2026, 5:43am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/8 "2026-02-08T05:43:52Z")

</div>

Hi Jason,

How can I save my program from NetLogo 6.4.0? When I try to open it with 6.4.0 I get an error message (Unable to open model with current format). In 7.0.3 I dont see an option.

Best regards,  
Ferdi

---

<div class="post-metadata">

**Author:** ![Jason](https://forum.netlogo.org/user_avatar/forum.netlogo.org/jason/32/209_2.png) [@Jason](https://forum.netlogo.org/u/Jason)\
**Post date:** [February 9, 2026, 9:08pm UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/9 "2026-02-09T21:08:49Z")

</div>

Your earlier message suggested that you already had a copy of the file in the 6.4.0 format:

> I tried it with models downloaded via version 7.0.3 and 6.4.0 (different error message).

If you no longer do, that’s fine. You can just send me the `.nlogox` (7.0.3) version of the file. There’s no automated way to be able to convert from `.nlogox` back to `.nlogo`, since the `.nlogo` format cannot encode information about some things that were introduced in NetLogo 7. But I can convert the relevant parts of your model manually.

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [February 10, 2026, 4:24am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/10 "2026-02-10T04:24:41Z")

</div>

Hi Jason,

In my previous post I was referring to models I downloaded from the library, not my own code. That is, I downloaded Critter Designers from the library using NetLogo Desktop (6.4.0 or 7.0.3), and then tried to upload it to HubNet Web using the the “use your own model” option.

[SOMhubnet.nlogox](https://forum.netlogo.org/uploads/short-url/7dYFJxqM2pnI1hLWom2F3l4pPZv.nlogox) (186.7 KB)

Anyway, here is my code.

Thanks for your help,

Ferdi

---

<div class="post-metadata">

**Author:** ![Jason](https://forum.netlogo.org/user_avatar/forum.netlogo.org/jason/32/209_2.png) [@Jason](https://forum.netlogo.org/u/Jason)\
**Post date:** [February 11, 2026, 12:11am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/11 "2026-02-11T00:11:08Z")

</div>

Thanks. I’ll aim to send back a converted version of the model in the coming days.

Is the stuff about writing CSV(?) data to a file necessary for you? Writing files is done in a very different way in HubNet Web/NetLogo Web, and I’d rather not worry about that part, if it’s not actually important for your use of the model.

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [February 11, 2026, 4:33am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/12 "2026-02-11T04:33:39Z")

</div>

Thanks. Yes, the file writing is not needed, it was used during development for checking. You can just ignore or remove it.

---

<div class="post-metadata">

**Author:** ![fhellweger](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/f/58f4c7/32.png) [@fhellweger](https://forum.netlogo.org/u/fhellweger)\
**Post date:** [March 11, 2026, 3:51am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/13 "2026-03-11T03:51:40Z")

</div>

Hi Jason,

I just wanted to follow up on this. If we could get this resolved that would be great. I was planning on doing a NetHub session at workshop in May, and would still have to do some testing and development before.

Best regards,

Ferdi

---

<div class="post-metadata">

**Author:** ![shwarzlazlo91](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@shwarzlazlo91](https://forum.netlogo.org/u/shwarzlazlo91)\
**Post date:** [November 26, 2026, 11:25am UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/14 "2026-11-26T11:25:10Z")

</div>

ive been following this thread and it looks like the connection problems could partly come down to how the machines are networked together especially in a classroom setup. a guide to building an isolated wired lan with static ips on windows 11 pcs might help sort that out [Guide to a closed wired LAN of three Windows 11 PCs for SiTex AIR rendering](https://newscrawler.org/en/e/guide-closed-wired-lan-three-windows-11-pcs/) ive had similar headaches before when the network profile wasnt set right.

---

<div class="post-metadata">

**Author:** ![christopherparker](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@christopherparker](https://forum.netlogo.org/u/christopherparker)\
**Post date:** [November 26, 2026, 2:54pm UTC](https://forum.netlogo.org/t/hubnet-connection-problem/733/15 "2026-11-26T14:54:46Z")

</div>

I’d be cautious about the static-IP/isolated-LAN advice: HubNet Web is browser-based and normally doesn’t need that setup. If the hosted model is visible but clients get “connection to host lost” on connect, a likely culprit is a proxy, firewall, or campus network blocking WebSocket upgrades. Testing host and client on the same simple network is a quicker diagnostic than rebuilding the LAN.
