From Nettalk 4 days I have controlled the port I am using for my application via a table which allows me to have the same application using different ports without having to change the Listen On Port number in The Nettalk object and then having to recompile for different users.
I do it my placing this code in the WindowManager Init after Open Files
WEBCTL:WebControlID = 'aaaaaaaaaaaaaaaa'
IF ACCESS:WebControl.FETCH(WEBCTL:KEY_WebControlID)
WebControlFound = FALSE
ELSE
WebControlFound = TRUE
CompanyName = CLIP(WEBCTL:CompanyName)
HomeWebSiteAddress = CLIP(WEBCTL:HomeWebSiteAddress)
IF HomeWebSiteAddress = ''
HomeWebSiteAddress = 'web'
END
HTTPPort = WEBCTL:HTTPPort
IF HTTPPort = 0
HTTPPort = 80
END
END
TaskbarDescription='[' & HTTPPort & '] ' & CLIP(CompanyName) & ' Location: ' & CLIP(HomeWebSiteAddress)
ACCESS:WebControl.Close()
ACCESS:WebLogin.Close()
For my development I normally use 8088 so that it doesn't clash with the 88 used by Capesoft in their examples although in the default settings in the Nettalk object I do have 88.
Previously I have never had an issue with this; the port is set to the port I specify in the code.
Lately ( going back quite a few versions of Nettalk8) I have noticed that Port88 was being blocked.
Only recently did I realise that this happened when I was running my app on 8088. I could access my application on 8088 as normal but I couldn't run a capesoft app on 88 at the same time.
I used netstat -ano in cmd I found that both port 88 and port 8088 were being listened to by the same pid, my exe.
Has there been a change that I didn't see that can cause this, and if so how should I change my app to allow me to continue without holding the default port.
Even though the app is supposedly listening on port88 I can't access it on that port.