Recent

Author Topic: Socket error in linux but not in Windows  (Read 750 times)

ironphil

  • Jr. Member
  • **
  • Posts: 56
Socket error in linux but not in Windows
« on: September 24, 2023, 03:14:14 pm »
Hi, I am making a simple webserver with weblaz and it works ok in Windows but in linux the program stops right away. If I execute it from the command line I get the following message:
Quote
Exception at 0000000000499478: ESocketError:
Binding of socket failed: 8080.
I am not used to socket programming and errors. What does that mean and how can I fix it?

paweld

  • Hero Member
  • *****
  • Posts: 1278
Re: Socket error in linux but not in Windows
« Reply #1 on: September 24, 2023, 03:21:20 pm »
It looks like some other service is already listening on port 8080. Change the port in your application or stop the service that is already listening on this port.
Best regards / Pozdrawiam
paweld

ironphil

  • Jr. Member
  • **
  • Posts: 56
Re: Socket error in linux but not in Windows
« Reply #2 on: September 24, 2023, 03:56:11 pm »
Thanks, there was indeed a problem with the port. Then I could get one step further and there was also a problem with the threads. Apparently in linux I need to use cthreads. It works now, thanks.

 

TinyPortal © 2005-2018