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
TSQLquery does not save a...
by
egsuh
[
Today
at 08:52:36 am]
[SOLEVD] Unwanted additio...
by
CM630
[
Today
at 08:32:42 am]
ЛазМер/ LazMer for measur...
by
CM630
[
Today
at 08:22:23 am]
Compile auxilliary units ...
by
Wesbat
[
Today
at 08:17:22 am]
How to combine data from ...
by
Zvoni
[
Today
at 08:13:09 am]
Nested declarations insid...
by
440bx
[
Today
at 06:02:53 am]
Lazarus Pascal Keywords a...
by
dbannon
[
Today
at 05:34:52 am]
New old guy
by
TBMan
[
Today
at 04:00:47 am]
How to validate ParamStr(...
by
n7800
[
Today
at 03:29:56 am]
Why with allows assignmen...
by
440bx
[
Today
at 03:02:26 am]
SDL2: Runtime Error 216 o...
by
TRon
[
Today
at 02:52:21 am]
Lazarus Release Candidate...
by
calebs
[
Today
at 01:55:45 am]
MQTT Client
by
cdbc
[January 12, 2025, 10:48:04 pm]
SDL2 image rotation Probl...
by
Fred vS
[January 12, 2025, 09:30:11 pm]
FPC crashes after running...
by
jamie
[January 12, 2025, 09:20:00 pm]
Out of memory / filter tw...
by
BubikolRamios
[January 12, 2025, 08:32:02 pm]
rebuilding IDE fails
by
Martin_fr
[January 12, 2025, 08:24:54 pm]
How do I access data memo...
by
TBMan
[January 12, 2025, 08:10:18 pm]
Out of heap
by
BubikolRamios
[January 12, 2025, 07:53:17 pm]
Where do I get IdHTTP, ...
by
Thaddy
[January 12, 2025, 07:03:36 pm]
TSQLQuery with lookup fie...
by
dpap
[January 12, 2025, 06:56:57 pm]
Vulnerabilities lurking i...
by
tetrastes
[January 12, 2025, 06:25:19 pm]
[Solved]Help needed with ...
by
cdbc
[January 12, 2025, 06:01:02 pm]
Large or huge sets
by
Thaddy
[January 12, 2025, 05:22:06 pm]
Pascal and Musical Tones ...
by
Roland57
[January 12, 2025, 04:11:37 am]
« previous
next »
Print
Pages: [
1
]
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?
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