Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Socket error in linux but not in Windows
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
H2Pas can't handle EXP CA...
by
marcov
[
Today
at 10:14:58 am]
CADSys4 3D.
by
zamtmn
[
Today
at 09:58:22 am]
const declaration
by
Thaddy
[
Today
at 09:45:14 am]
TImage colors incorrect
by
Thaddy
[
Today
at 09:26:22 am]
Any RequestOpenDirectory ...
by
eolandro
[
Today
at 08:50:30 am]
Add additional Components...
by
cdbc
[
Today
at 07:03:25 am]
Creating a SDL child wind...
by
TRon
[
Today
at 06:17:08 am]
String replace or add ' ...
by
Thaddy
[
Today
at 06:14:41 am]
File operations blocking ...
by
atlatl
[
Today
at 05:44:51 am]
Nested declarations insid...
by
440bx
[
Today
at 04:26:28 am]
[solved] triple click
by
dbannon
[
Today
at 01:46:22 am]
SDL2 image rotation Probl...
by
Fred vS
[
Today
at 01:13:15 am]
SetPart ?
by
BubikolRamios
[January 15, 2025, 11:32:19 pm]
TRichMemo High Lighted te...
by
What I can do
[January 15, 2025, 11:20:37 pm]
Lazarus/FPC Flatpak appli...
by
Chronos
[January 15, 2025, 09:56:54 pm]
The mouse and using ptcgr...
by
TBMan
[January 15, 2025, 09:15:40 pm]
SDL2: Runtime Error 216 o...
by
TRon
[January 15, 2025, 07:44:59 pm]
Iterator on non-existing ...
by
Warfley
[January 15, 2025, 05:45:03 pm]
Batch "publish" of all pr...
by
MarkMLl
[January 15, 2025, 05:42:45 pm]
[solved] Setting the init...
by
TBMan
[January 15, 2025, 04:28:08 pm]
MQTT Client
by
cdbc
[January 15, 2025, 03:06:25 pm]
Issue getting and setting...
by
d7_2_laz
[January 15, 2025, 02:28:48 pm]
Problem with cell comment
by
kjteng
[January 15, 2025, 02:17:57 pm]
[SOLVED]Troubles when con...
by
bytebites
[January 15, 2025, 01:15:16 pm]
FP crashes after running ...
by
marcov
[January 15, 2025, 10:06:01 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Socket error in linux but not in Windows (Read 758 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?
Logged
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.
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Socket error in linux but not in Windows
TinyPortal
© 2005-2018