Networking & FS

For general discussion related FlowStone
Drnkhobo
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Networking & FS

Post by Drnkhobo »

Im trying to get FS's client & server modules to work.
Now ive got the server running, when i try to connect with client, it wont connect.
Ive enabled FWall access for FS so im stumped. Nothing in the forums either. . . .
I know its probably a basic answer but I have to start at the beginning.

Here is my schematic if anyone wants to take a look. . .

Network Tests.fsm
(441 Bytes) Downloaded 1144 times
User avatar
support
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Networking & FS

Post by support »

Here's a working example that sends data to and from the same PC to test the networking.

1) Start the Server
2) Open the Client
3) Send data from Server
Attachments
New Network Test.fsm
(428 Bytes) Downloaded 1241 times
Drnkhobo
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Networking & FS

Post by Drnkhobo »

Thanks support, quick reply esp for a sunday :shock: :D

Ive tried your schematic but it still wont connect :?

The log says:

'Trying to connect...
Could not connect to server'

Why is it not connecting?
Just got a "Virtual call' error in FS and it quit????
I dont get it,

IP - correct
Port - correct
The server log displays the server running on said port and IP. But no connection. . . .
User avatar
support
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Networking & FS

Post by support »

If it can't connect then the port could be blocked or being used by something else?

Try some different port numbers (eg. 1000), this works here but you may have to open the port in your router.

Does the Server start ok (must be started first)?

Here's what it looks like here :
Attachments
New Network Test clip.png
New Network Test clip.png (143.95 KiB) Viewed 27055 times
Drnkhobo
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Networking & FS

Post by Drnkhobo »

Yeah, double checked last night if I got everything correct, IP/PORT ect. Router settings. But still nothing.


Turn on the pc this morn, load up my schematic again and it works!???????
Wtf?
I changed NOTHING. Anyway it's working now. Thanks :)

Is it only string data I can pass through?
I'm asking because I'm looking to send digitalised analog video streams over Ethernet.
So:
Analog camera module attached to flow board - flow board's MPU digitalises signal & sends via Ethernet . . .

Would I be able to encode the video stream in FS? - I'm thinking its done in ruby accessing ffmpeg dll functions???
User avatar
support
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Networking & FS

Post by support »

Great!

Sometime rebooting resolves IP conflicts.

For streaming video you could try it, there is a HEX mode for sending raw data.

We did play with the VLC video streaming by making a FS module but it was a bit unreliable (VLC that is).
qqwy
Posts: 6
Joined: Fri Jun 29, 2012 9:38 pm

Re: Networking & FS

Post by qqwy »

I know, this topic has been inactive for a while, but my issue is fully related to this topic.

I tried using the server and client with UDP. It doesn't work.

The Server seems to run fine, but the client doesn't open the specified port. Instead it opens some very high port (5520, 5521, etc), going up to the next port every time it is closed/started again, skipping any occupied ports.

That is what happens when I'm using my own IP address(the address the server outputs) as the Client's input. Configuring the client to use IP's like 'localhost' or '127.0.0.1' don't work at all, giving me a 'Could not connect to server' error.

Either I am doing something wrong, or there's a bug here somewhere.
Attachments
UDPServerClientTest.fsm
(1.57 KiB) Downloaded 1188 times
User avatar
support
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Networking & FS

Post by support »

Leave it with us and we'll have a look.
rlr
Posts: 27
Joined: Tue Jul 13, 2010 9:17 pm

Re: Networking & FS

Post by rlr »

qqwy wrote:The Server seems to run fine, but the client doesn't open the specified port. Instead it opens some very high port (5520, 5521, etc), going up to the next port every time it is closed/started again, skipping any occupied ports.

I think that's ok. Its the sender's port. The server will send it's answer back to this port

qqwy wrote:That is what happens when I'm using my own IP address(the address the server outputs) as the Client's input. Configuring the client to use IP's like 'localhost' or '127.0.0.1' don't work at all, giving me a 'Could not connect to server' error.

Either I am doing something wrong, or there's a bug here somewhere.

I'm seeing that too. I think the socket is bound to the IP address rather than 127.0.0.1
User avatar
fabb
Posts: 6
Joined: Wed Feb 20, 2008 9:06 pm

Re: Networking & FS

Post by fabb »

rlr wrote:
qqwy wrote:That is what happens when I'm using my own IP address(the address the server outputs) as the Client's input. Configuring the client to use IP's like 'localhost' or '127.0.0.1' don't work at all, giving me a 'Could not connect to server' error.

Either I am doing something wrong, or there's a bug here somewhere.

I'm seeing that too. I think the socket is bound to the IP address rather than 127.0.0.1

Is there any way to configure the Flowstone Network Server to listen on "localhost" or 127.0.0.1?
It always binds to one of my external IP addresses. When I try to connect with a client from the same machine, it only works when I manually enter the IP of the Flowstone server.
Post Reply