Hi All,
I ran into this topic
viewtopic.php?f=65&t=48225&p=67527&hilit=socket#p67527which was locked so i opened a new topic instead.
Im working on copying trades from my laptop JForex terminal to my desktop JForex terminal. At this moment im just writing
the basics and wanting to establish the connection. The server socket is already established but i fail to implement
a correct client socket strategy. Whenever i open this strategy on my laptop which calls the socket on the desktop, it fails with a message
that it cannot bind to the socket... I checked, double checked and the firewall is not blocking it, port is open and available and the hostname can be correctly found connecting through my laptop jforex strategy.
The weirdest thing though is that once i run my .Net application i wrote to test the socketconnection on the server, it does connect without any delay and problems... so this tells me the problem is with the bind.(..) method, i guess.
print("Inside 4a." ); //for debugging
InetSocketAddress socketAddress = new InetSocketAddress(IPaddress, 8888); // IPaddess by param, 8888 just a free port for testing
print("socketAddress=" + socketAddress.getHostName().toString());
print("Inside 4b." ); //for debugging
serverSocket.bind(socketAddress); //This line fails!
this is part of the code which fails... When it fails it says
"
09:00:10 java.net.BindException: Cannot assign requested address: bind"
Is there anyone who can help me or give me some pointers?
Anyone correctly established a socket client from within a Jforex terminal?
Thanks in advance,
Phil