The following forum message was posted by at
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3767715:
Hi Fabio,
Thank you very much for your time!
Firewall and SE Linux are both disabled.
I have 2 network cards installed.
eth0 - Is currently connected to a switch that goes nowhere. Static IP:
172.16.1.2 / Mask: 255.255.254.0
eth1 - Connected to Internet: DHCP / Mask 255.255.255.0
I modified code as follows:
[code]#=======================================================================================================================
# StartClient
#=======================================================================================================================
def StartClient(host, port):
\"\"\" connects to a host/port \"\"\"
PydevdLog(1, \"Connecting to \", host, \":\", str(port))
try:
s = socket(AF_INET, SOCK_STREAM);
s.connect((host, port))
PydevdLog(1, \"Connected.\")
return s
except:
import traceback;traceback.print_exc()
sys.stderr.write(\"server timed out after 10 seconds, could not connect
to %s: %s\\n\" % (host, port))
sys.stderr.write(\"Exiting. Bye!\\n\")
sys.exit(1)
[/code]
I now get:
[code]pydev debugger: warning: psyco not available for speedups (the debugger
will still work correctly, but a bit slower)
pydev debugger: starting
Traceback (most recent call last):
File
\"/home/esutton/setup/eclipse/plugins/org.python.pydev.debug_1.5.9.2010063001/pysrc/pydevd_comm.py\",
line 334, in StartClient
s.connect((host, port))
File \"<string>\", line 1, in connect
gaierror: (-2, \'Name or service not known\')
server timed out after 10 seconds, could not connect to localhost: 48145
Exiting. Bye![/code]
Any clues?
eth0 goes nowhere; it is connected to an empty switch. Does the socket
connection need loopback enabled or something? Or is there someway to connect
to eth1 instead?
Thank you for your help,
-Ed
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users