1

my server.py and client.py works fine within same computer and within the computer directly connected with wifi modem. but if i want to use it between the computers which are connected through proxy they are not working. ping works fine between those computers. Is there any need to modification of my program or the proxy settings? firewalls are deactivated.

I wrote the simple server program

import socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host=socket.gethostname()
port=12345
s.bind((host, port))
s.listen(5)
while True:
    c, addr = s.accept()
    print 'got connection from',addr
    c.send('Thank you for connecting')

    c.close()

and client program is

import socket               

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)        
host = 'server-ip-address' 
port = 12345               
s.connect((host, port))
print s.recv(1024)
s.close                    

error is no connection is made because target machine actively refuse it. what is my mistake?

enter image description here my network is something like that. I want to connect PC2 and PC3 or PC1 and PC3. firewall of PC1,PC2 and PC3 are disabled. still refusing the connection. why?

4
  • What are you using for a proxy and how it is configured? Commented Apr 24, 2015 at 5:48
  • Is it configured to forward port 12345? Commented Apr 24, 2015 at 5:53
  • how to configure forward port. configuration page has the following options HTTP ,FTP, SCOCKET/MMS , TELNET. which one i have to set Commented Apr 24, 2015 at 5:58
  • how this problem could be solved@ Andrey Sabitov Commented Apr 24, 2015 at 6:09

1 Answer 1

1

If you are using a custom port (e.g. a non-protocol-standard port that is not supported by default), then you have to configure a custom port mapping in ccProxy.

ccProxy calls these Port Map Rules. You can read about them here: http://www.youngzsoft.net/ccproxy/faq_6.htm

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.