[LETODB] ERROR hb_socketBind() port 8012 used -- often a short temporary problem Socket error OK

214 views
Skip to first unread message

Mario Mansilla

unread,
Jul 6, 2018, 10:28:49 AM7/6/18
to Harbour Users
Hola Amigos :
                   que significa este error en el archivo leotodb.log
Saludos
Mario Mansilla

Hello friends :
                    What does this error mean in the leotodb.log file?
regards
Mario Mansilla

letodbf.log
letodb.ini

elch

unread,
Jul 7, 2018, 3:29:03 AM7/7/18
to Harbour Users
Hola, Mario Mansilla

LetoDB'f' ;-) -- [ LetoDB! is the famous origin of my work ]

# you can not start more than one server for a TCP port [ 2812 ]
# you are using Unix [ i.e. Linux ] OS:
then it is not possible to re-start the server too quick after it is stopped.
Use "leto.sh" to start server: it checks if it is possible again.
Search WEB for: "LINUX time-wait" for detailed info
-- but no need to change something, just wait a moment ...

best regards
Rolf

Mario Mansilla

unread,
Jul 7, 2018, 5:21:37 PM7/7/18
to harbou...@googlegroups.com
Hello Rolf:
                 Thank you very much for your answer .

# you can not start more than one server for a TCP port [ 2812 ]
I do not understand this . What should I do ?

# you are using Unix [ i.e. Linux ] OS:
I'm using Windows 7 and Windows 10
The objective of this project is that with LETODB you can read the dbf of another system remotely. That's why the server will be on a PC with windows 7 or 10. I do not know if it is possible to do this.

best regards
Mario Mansilla 

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

elch

unread,
Jul 7, 2018, 11:31:18 PM7/7/18
to Harbour Users
Hello again.

( i only speak english, so we need a translator )

My last answer was without looking into your configuration 'letodb.ini'.

# avoid duplicate lines in 'letodb.ini'
( at bottom were a second time "IP/Server" )

# IP: 190.245.215.109 == Telecom Argentina.
You need the local IP address (LAN) of your machine.
Leave it empty!, if address is not known or dynamically assigned.

# Port: 8012
maybe possible if not used by another software.
LetoDBf default port is: 2812 -- this is commonly unused.

# activated for you in letodb.ini: BC_Services,
then LetoDBf server will respond in your *local* network for requests,
which IP - address it have.

Then you also can use in your application:
Leto_Connect( Leto_Detect() )

best regards
Rolf
letodb.ini

Mario Mansilla

unread,
Jul 13, 2018, 11:10:35 AM7/13/18
to harbou...@googlegroups.com
Hello Rolf:
                
I have doubts about the function that some variables of the file letodb.ini that accompany letodb.exe in the server meet.
For example :
1 - A single pc should be:
[Main]
Server = 127.0.0.1 (localhost)
IP = 127.0.0.1
Port = 8012
DataPath = e: \ Disk \ hmgdemo \ Gestion \ tfwin \ ca \ letodb \ data
; LogPath = / tmp
Default_Driver = CDX
; Lock_Scheme = 6
; Memo_Type = FPT
Share_Tables = 1
; Tables_Max = 999

2 - A local LAN network:
[Main]
Server = 192.168.0.10 (my private iP)
IP = 192.168.0.10 (my Private IP)
Port = 8012
DataPath = e: \ Disk \ hmgdemo \ Gestion \ tfwin \ ca \ letodb \ data
; LogPath = / tmp
Default_Driver = CDX
; Lock_Scheme = 6
; Memo_Type = FPT
Share_Tables = 1
; Tables_Max = 999

3 - Between PCs remotely:
[Main]
Server = 245.120.35.120 (my IP publishes)
IP = 192.168.0.10 (my private IP)
Port = 8012
DataPath = e: \ Disk \ hmgdemo \ Gestion \ tfwin \ ca \ letodb \ data
; LogPath = / tmp
Default_Driver = CDX
; Lock_Scheme = 6
; Memo_Type = FPT
Share_Tables = 1
; Tables_Max = 999


best regards
Mario Mansilla

--

Ash

unread,
Jul 13, 2018, 11:44:10 AM7/13/18
to Harbour Users
Hello Mario,

LetoDBf will need ports 8012 and 8013. Is port 8013 being used by another application?

Regards.
Ash

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

Mario Mansilla

unread,
Jul 13, 2018, 11:53:57 AM7/13/18
to harbou...@googlegroups.com
Hello Ash:
                I do not know how I can find out if this port is being used.
regards
Mario Mansilla


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.

Ash

unread,
Jul 13, 2018, 1:23:12 PM7/13/18
to Harbour Users
Hello Mario,

Run netstat command with Administrator privileges and look for ports 8012 and 8013 being used.

Regards.
Ash 
Reply all
Reply to author
Forward
0 new messages