fttx / barcode-to-pc-server

Barcode to PC server
https://barcodetopc.com/
GNU General Public License v3.0
207 stars 85 forks source link

What's the default listening port? #417

Open Videogamer555 opened 1 year ago

Videogamer555 commented 1 year ago

As I'm a Windows user I don't like how this server requires the manual installation of other software like Node.js (something typically seen with Linux based projects). I prefer to run setup.exe and get an installation that includes all dependencies. To remedy this situation, I've decided to try to write my own server from scratch that runs in native Windows x86 code. As I was using your source code for reference, something seems to be missing. Nowhere is a constant defined that sets the listening port for the TCP server. There seems to be reference to external config file for setting the port number (a file located at "./config"), but there doesn't seem to be any file anywhere in the source code here on Github which has the name "config". So I can't find anything that indicates on what TCP port the server should be listening. This is a brick wall in the development of my own native Windows code version of this server. Please let me know what port the server should be listening to.

fttx commented 1 year ago

Hello, it is 57891, if i'm not mistaken I remember that I've also implemented a way to specify a custom port from the app:

  1. Open the app
  2. Open the menu and tap “Select server”
  3. Tap the “+ ADD SERVER” button and type the IP:port in the address field

If you have it add me on telegram @filippotor I'm curious to see this native version 🙂