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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Ann: DeCoperators
by
Thaddy
[
Today
at 07:37:29 am]
I hope FreePascal can sup...
by
Handoko
[
Today
at 07:20:36 am]
How to merge multiple cla...
by
nikel
[
Today
at 04:44:46 am]
Strange happenings with T...
by
mas steindorff
[
Today
at 03:58:33 am]
Weird error
by
xiyi0616
[
Today
at 03:47:04 am]
Can't pass string to TEdi...
by
mas steindorff
[
Today
at 03:45:21 am]
AI assisted translation o...
by
MathMan
[April 12, 2026, 11:48:54 pm]
Remote desktop software i...
by
MathMan
[April 12, 2026, 10:50:37 pm]
Bad Sandwich
by
Guva
[April 12, 2026, 09:55:25 pm]
FPC Unleashed (inline var...
by
440bx
[April 12, 2026, 09:38:20 pm]
ZeosDB and sqlite3
by
dseligo
[April 12, 2026, 09:06:22 pm]
The ever re-appearing /= ...
by
Thaddy
[April 12, 2026, 08:07:09 pm]
Some Lazarus Graphics Rel...
by
Boleeman
[April 12, 2026, 03:45:30 pm]
Some Lazarus Utils N Stuf...
by
Boleeman
[April 12, 2026, 03:39:45 pm]
Ann: Deinline: a de-inlin...
by
Fred vS
[April 12, 2026, 03:17:40 pm]
Little bit...
by
jamie
[April 12, 2026, 01:04:11 pm]
BAScript - Simple scripti...
by
Ñuño_Martínez
[April 12, 2026, 01:00:21 pm]
NiceGrid component for La...
by
Alexandr R
[April 12, 2026, 11:02:54 am]
Idea to solve a circular ...
by
jamie
[April 12, 2026, 10:55:07 am]
Status of Fresnel Project...
by
Thaddy
[April 12, 2026, 08:47:30 am]
Help with OLD code
by
Thaddy
[April 12, 2026, 08:17:11 am]
Can /my/ AI help me with ...
by
MathMan
[April 12, 2026, 07:33:14 am]
Lazarus Image Editor
by
Boleeman
[April 12, 2026, 03:46:20 am]
Splitting Picture into Qu...
by
Boleeman
[April 12, 2026, 02:43:50 am]
fp-h2pas: New C header tr...
by
BildatBoffin
[April 11, 2026, 07:22:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Socket error in linux but not in Windows (Read 1160 times)
ironphil
Jr. Member
Posts: 58
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: 1596
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: 58
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