hello. I have some strange problem with socket connection.
I cannot make connection to localhost (127.0.0.1). Every time I have "connection refused". But i can connect to 22 port where sshd is running. I've tested it under Java and python. In python i have code:
Code:
from socket import socket
s = socket()
s1 = socket()
s.bind(('127.0.0.1', 10)) #used various ports
s1.connect(('127.0.0.1', 10))
error comes in 5th line.
Please note that i have no problems with sshd.
I use Gentoo Linux with 2.6.7 kernel (gentoo-dev-kernel).
I thought that problem is because of lack xinetd. But starting the deamon did not make me happy. Using of tcpd brought same results.