Results 1 to 5 of 5

Thread: routers and winsock

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    1

    routers and winsock

    ok simple question if it can't be done which seems to be the case let me know. i have created a semi popular (around 250 users) online game. this game requires someone to "host" and someone to connect. so the host is the server the other is the client. the problem i'm having is people have firewalls and routers and they can not host games. I know they could set up port forwarding and such on the router but frankly the average user is to stupid to do this and i'm not walking 200 people through it. so my question is is their anyway at all to have winsock be a server through a router with having the user do anything on their router?

    Also is their a way through code to get and display a users public IP address and not their internal one.

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: routers and winsock

    Quote Originally Posted by kingofgames999
    ok simple question if it can't be done which seems to be the case let me know. i have created a semi popular (around 250 users) online game. this game requires someone to "host" and someone to connect. so the host is the server the other is the client. the problem i'm having is people have firewalls and routers and they can not host games. I know they could set up port forwarding and such on the router but frankly the average user is to stupid to do this and i'm not walking 200 people through it. so my question is is their anyway at all to have winsock be a server through a router with having the user do anything on their router?

    Also is their a way through code to get and display a users public IP address and not their internal one.
    As far as I am aware no, they need to set up port forwarding when behind a router, when behind a firewall all they need to do is unblock the port you use.

    As for getting external IP address for those behind a router have a look here

    http://www.vbforums.com/showthread.php?p=1919485

    I hope that helps, also do you have a copy of your game? Maybe yo could post it in our Games - Demo section and we can have a try

    Pino

  3. #3
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: routers and winsock

    Quote Originally Posted by kingofgames999
    ok simple question
    not really.

    is their anyway at all to have winsock be a server through a router with having the user do anything on their router?
    Only if the router supports UPnP.

    Also is their a way through code to get and display a users public IP address and not their internal one.
    Possibly... There are web pages you can load from behind a NAT and the web page will spit out your true IP add.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  4. #4
    Member
    Join Date
    Feb 2005
    Location
    Usa Nyc
    Posts
    45

    Re: routers and winsock

    I'm sure there is a way to unblock your port in code. Commercial games do it. I think?
    Kiss, Aerosmith, Black Sabbath, Nazareth, Judas Priest, Status Quo, Cinderella, Scorpions, Tool, SteppenWolf.

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: routers and winsock

    I don't think they unblock ports. What they do is find open ones, and adjust accordingly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width