Hello,

I've got a problem in connecting to a card emulator. I can't modify emulator's code, so i assume it is correct. It works on 5000 port. I can connect on the client's side via:
Java Code:
Socket socket = new Socket("127.0.0.1",5000);
but this code:
Java Code:
Socket socket = new Socket("192.168.1.2(my local address)",5000);
throws exception
Java Code:
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at java.net.Socket.<init>(Socket.java:375)
        at java.net.Socket.<init>(Socket.java:189)
        at Test3.main(Test3.java:8)
java.net.ConnectException: Connection refused: connect
I work on Windows 7 64-bit and i tried to unlock the TCP port 5000 in firewall settings but it doesnt help.
On the other hand i can connect with emulator over UDP at the same port. Thank you in advance.