Introduction to Socket Programming with PHP
Subject:   Testing our proxy
Date:   2005-03-04 09:34:18
From:   aleppos

i try to connect to the socket like

but because i am using a proxy i can't coonect to the port 10000 can you help me please

if you can please send to me email at

i wait your replay thanks

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Re: Testing our proxy
    2005-03-07 00:56:02  dsolin [View]

    Hi aleppos,

    If you're developing this on a remote machine, your network setup needs to allow you to connect to that machine on the port you have selected for your TCP server (10000 used as example in this article). You can test this by doing:

    # telnet <remote_machine_host_or_ip> 10000

    It's important to understand that while HTTP is a TCP-protocol, TCP/Sockets are not the same thing as HTTP. TCP is a low-level protocol for network communication, Sockets are a programmatical technique for developing TCP-capable programs, and HTTP is a higher-level protocol developed "on top of" TCP.

    So, connecting to this simple TCP-server with your browser will not work as the browser will try to "talk" HTTP with it. This article only demonstrates the very basics about TCP/Sockets-programming. Which, for that matter, could be used as the base for a HTTP-server, but that is different story :-)