Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using tSocketInput with remote host

I am trying to access a MOXA Nport 5110 (as serial to ethernet device server) by using the tSocketInput component and get the following error.

Starting job Moxa_Test at 16:51 31/03/2017.

[statistics] connecting to socket on port 4057
[statistics] connected
Exception in component tSocketInput_1
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at trials.moxa_test_0_1.Moxa_Test.tSocketInput_1Process(Moxa_Test.java:484)
at trials.moxa_test_0_1.Moxa_Test.runJobInTOS(Moxa_Test.java:907)
at trials.moxa_test_0_1.Moxa_Test.main(Moxa_Test.java:764)
[statistics] disconnected
Job Moxa_Test ended at 16:51 31/03/2017. [exit code=1]


OS: Windows 8.1, 64-bit
TOS DI: 6.3.1.20161216_1026

My questions:
[list=1]

  • Is it possible to connect to a remote server with tSocketInput? Or is it just for local sockets? What have I misunderstood?

 

  • Why is it using port 4057 instead of the specified port 950?

 

  • Any pointer to a manual chapter or examples with a similar use case is highly appreciated.




Thank you very much for your support
Thomas

Labels (2)
3 Replies
cterenzi
Specialist
Specialist

The message "connecting to socket on port 4057" is a Talend message that appears at the start of each run. (The port number may vary.)

You can view the documentation for a component within Talend by highlighting the component and pressing F1.  Follow the link that says "tSocketInput Component Documentation."

According to the documentation, the component "opens the socket port and listens for the incoming data."  It does not sound like it lets you connect to a remote server.
Anonymous
Not applicable
Author

Thank you for your answer. 
I had a look at the documentation before posting my question Smiley Wink.
To me the documentation is not really, clear. It would help a lot if it would clearly state, that "Host name" has to be the host name of the local machine TOS DI is running on.

...
Function: tSocketInput component opens the socket port and listens for the incoming data.
Purpose: tSocketInput component is a listening component, allowing to pass data via a defined port

Basic settings
Host name: Name or IP address of the Host server
Port: Listening port to open
...

Any ideas on how one would consume data from a remote server with standard talend tools? 
Of course, Plan B is to write a component ourselves...
TRF
Champion II
Champion II

Hi,
This may help you to check if the port 4057 il already bound https://coderanch.com/t/565315/java/resolve-java-net-BindException

Regards,
TRF