socket port is not configuring .... plz help

Discussion in 'C++' started by yogesh, Mar 8, 2007.

  1. yogesh

    yogesh Guest

    i developing a game in c++,
    for that i got the socket program is working successfull in freebsd ,
    but the same program is shifted to the Redhat linux 9.0 .

    i change the ip address and the port is also same

    i can compile the code successfull. but if i run the server socket
    file It not assigning the port ,
    the port i am liking is 8002 .

    if i run the server no output it just waiting stage is going on



    i will show the output as follows

    In FreeBSD
    *************
    freebsd1# sh server.sh
    freebsd1#
    listen port: 1024

    listen port: 8002

    freebsd1#

    in LINUX
    **********
    [root@gemini /]# cd /home/casino/bin/server/
    [root@gemini server]# sh server.sh
    [root@gemini server]#

    -----------------------------------------------------------------------------
    port is not assign . ip address and port is right ...


    what will be the problem , can any one help
     
    yogesh, Mar 8, 2007
    #1
    1. Advertising

  2. yogesh

    Lionel B Guest

    On Thu, 08 Mar 2007 04:31:40 -0800, yogesh wrote:

    > i developing a game in c++,
    > for that i got the socket program is working successfull in freebsd ,
    > but the same program is shifted to the Redhat linux 9.0 .


    [...]

    > what will be the problem , can any one help


    No-one can help because you haven't shown any code, so we haven't got the
    faintest idea what the problem might be, or even if it's a C++ language
    problem (rather than eg. a 3rd party library problem, which would be
    off-topic here).

    --
    Lionel B
     
    Lionel B, Mar 8, 2007
    #2
    1. Advertising

  3. yogesh

    Jim Langston Guest

    "yogesh" <> wrote in message
    news:...
    >i developing a game in c++,
    > for that i got the socket program is working successfull in freebsd ,
    > but the same program is shifted to the Redhat linux 9.0 .
    >
    > i change the ip address and the port is also same
    >
    > i can compile the code successfull. but if i run the server socket
    > file It not assigning the port ,
    > the port i am liking is 8002 .
    >
    > if i run the server no output it just waiting stage is going on
    >
    >
    >
    > i will show the output as follows
    >
    > In FreeBSD
    > *************
    > freebsd1# sh server.sh
    > freebsd1#
    > listen port: 1024
    >
    > listen port: 8002
    >
    > freebsd1#
    >
    > in LINUX
    > **********
    > [root@gemini /]# cd /home/casino/bin/server/
    > [root@gemini server]# sh server.sh
    > [root@gemini server]#
    >
    > -----------------------------------------------------------------------------
    > port is not assign . ip address and port is right ...
    >
    >
    > what will be the problem , can any one help


    This souinds more like an OS issue, maybe you should try a linux newsgroup
     
    Jim Langston, Mar 8, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brian

    Size of my Struct? PLZ PLZ reply

    brian, Nov 23, 2004, in forum: C Programming
    Replies:
    7
    Views:
    421
    -berlin.de
    Nov 25, 2004
  2. Replies:
    1
    Views:
    387
  3. Replies:
    2
    Views:
    341
    Nick Keighley
    Nov 24, 2006
  4. Replies:
    1
    Views:
    349
  5. nocturnal
    Replies:
    1
    Views:
    534
    nocturnal
    Jul 10, 2009
Loading...

Share This Page