Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network programming

Status
Not open for further replies.

leangross

IS-IT--Management
Jul 3, 2002
84
PH
hi, im new in network programming....
most of the articles i've read requires a server and a port to connect to... just wondering how will i know which port to use?

I want to test the sample code i got from one the website i read. I tried assigning 8000 to the port but it gave me this error, "Message : No connection could be made because the target machine actively refused it"

When i change the port to 80 it did give me any error message at all... Is there a way to know which port i can use? im using my local machine for testing (localhost).

Hope someone could help me understand these things clearer...

 
it was the firwall that refused your connection to port 8000. Open it for incomming trafic and you should fine.

Everything above 1500 and less then 65000 should be fine.

Christiaan Baes
Belgium

"My old site" - Me
 
hi thnx for your reply... but how could i open a port for incomming traffic?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top