Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oops:

        Citybound v0.1.2-762-g7852f0a

       This is the simulation server.        
  To connect and start playing, please open  
   this address in Chrome/Firefox/Safari:    
  ╭───────────────────────────────────────────╮
  │           http://localhost:1234           │
  ╰───────────────────────────────────────────╯
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 98, kind: AddrInUse, message: "Address already in use" }', src/libcore/result.rs:1009:5

(I don't have anything listening on port 1234)


Change the hostname to be more explicit: 127.0.0.1 or 0.0.0.0 I've ran into issues where a host name is not resolved on one OS but it is resolved in other OS'.


If that works it raises more questions than it answers ;)


Either a bug on the OS they're on, or some Rust library (OS based bug or bad assumptions bug). Guessing the developer only tested their code in one OS.


I'm sure the dev has tested only on OS X. I'm on Linux. 127.0.0.1 and 0.0.0.0 fail, by the way, as does specifying my actual hostname or localhost using --bind. Recommend the dev install a Linux VM!


You're right. I'll test it when I get a chance


Can you run `nc -l localhost 1234`?


Yep!


It works on my Debian Buster.


In my experience on Windows 10, localhost doesn't work all the time 127.0.0.1 like it does on MacOS or Linux.


Sounds like you may have something running at 1234. Maybe Parcel Bundler?


Well, check if you have another process runnning at that port.


Nope, and regardless of what port I specify via the --bind parameter, the error is the same.


Maybe try specifying host:port to --bind?

(This is a wild guess from skimming the sources, without any knowledge of Rust.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: