Android Question Need help connecting to server

Cenny

Active Member
Licensed User
Longtime User
The idea is that a record stores data of a flight.
The record is send by TCP to the 'About Time' server for storage and display with About Time web client at https://abouttime.flyingneurons.io
  • the address is : abouttimetcp.flyingneurons.io
  • the port to use is 40640
The server answers to the client who sent the data

main:
            If astreams.IsInitialized Then
                astreams.Close
            End If

            socket1.Initialize("socket1")
            'socket1.Connect("15.236.175.34",40640,0)
            socket1.Connect("abouttimetcp.flyingneurons.io",40640,0)
            Wait For socket1_Connected(successful As Boolean)
            ToastMessageShow("socket1_connected event fired",False)
            If successful Then
                SetState(True)
                astreams.Initialize(socket1.InputStream,socket1.OutputStream,"astreams")

            End If


I do receive the Connected event, but it always returns False.
What am I doing wrong or is missing.
Is there anybody out there who can help me?
Very much appreciated

Cenny
 

drgottjr

Expert
Licensed User
Longtime User
you went through the same thing a month ago. no one was able to connect then. you provided
no documentation then or now. and the "connected" event doesn't mean there is a connection.
port 40640 was closed then, and it's still closed (port 40740 is open, by the way). this thread is
no different from the previous thread. "send by tcp" is vague (http uses tcp, ftp uses tcp, etc).
please provide a link to the server's documentation.

update: i believe port 40740 is a websockets server. the web site gets its updates from a websockets server listening on that port.
if that's the case, you may need a websockets client, not b4a's socket library. but without documentation from you, it's hard to know.
 
Last edited:
Upvote 1
Top