Socket Communication

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Chiara
Posts: 30
Joined: Thursday 20 September, 2012 - 09:40

Socket Communication

Post by Chiara »

GoodAfternoon,

my problem is to make a communication between ED and other softwares via socket.
I both tryed to use SocketListen atom that my own atom but I can't listen anything.
I'm sure messages are sent through the rigth port and the localhost is written correctly.

I also make a test about the listener atom and it works correcly.

What could I do?

Chiara
Chiara
Posts: 30
Joined: Thursday 20 September, 2012 - 09:40

Re: Socket Communication

Post by Chiara »

thank you
User avatar
Fred
Posts: 22
Joined: Wednesday 17 November, 2010 - 12:06

Re: Socket Communication

Post by Fred »

Hi Chiara,

Have you checked your Firewall settings? I once clicked too fast and it made sure Enterprise Dynamics was not capable of sending and/or receiving any messages.

On my new computer the Firewall dialog automatically popped up when I tried to test a Socked Listen in combination with A Socket Send atom.

When I approved Enterprise Dynamics it was working. You can use the Test Center to test the communication.

Gr. Fred...
Chiara
Posts: 30
Joined: Thursday 20 September, 2012 - 09:40

Re: Socket Communication

Post by Chiara »

Hi Fred,

all Firewall are disabled. We made the socket communication between 2 pc via LAN: the socket sender atom in the first pc was able to communicate with the socket listener atom in the second pc. By using the command prompt to send the message in the first pc, the socket listener socket didn't receive anything, either an error.

We tried both tcp and udp communication.

Same problem also using only one computer.

Thank you,
Chiara
User avatar
Fred
Posts: 22
Joined: Wednesday 17 November, 2010 - 12:06

Re: Socket Communication

Post by Fred »

Hi Chiara,

Can you explain what you did in the command prompt? What command/program did you use?

I would like to duplicate what you are trying to see what is going wrong.

Gr. Fred...
User avatar
Fred
Posts: 22
Joined: Wednesday 17 November, 2010 - 12:06

Re: Socket Communication

Post by Fred »

Hi Chiara,

Have you also looked at the Robot example I gave you?

ED has 2 ways of working with TCP/IP communication. The Socket atoms, but there are also some different 4DScript commands that you can use. The Robot example uses the 4DScript commands.

Gr. Fred...
Chiara
Posts: 30
Joined: Thursday 20 September, 2012 - 09:40

Re: Socket Communication

Post by Chiara »

Hi Fred,

I'm glad to announce that we managed to receive communicate via socket, anyway I attache the program/command we are using.

Probably there was a problem with the cable used for the LAN connection.

Thank you,

Chiara
Attachments
ncat-portable-5.59BETA1.zip
(651.3 KiB) Downloaded 560 times
User avatar
Fred
Posts: 22
Joined: Wednesday 17 November, 2010 - 12:06

Re: Socket Communication

Post by Fred »

Hi Chiara,

Great! Good luck with the project.

Gr. Fred...
Post Reply