Connecting to a server at home on a router

This is a discussion on Connecting to a server at home on a router within the Networking/Device Communication forums, part of the General Programming Boards category; It's late at night right now, and questions are popping in to my head that I do not have the ...

  1. #1
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904

    Connecting to a server at home on a router

    It's late at night right now, and questions are popping in to my head that I do not have the motor skills to search for right now.....so I'm asking them here.

    I have a home network and with winsock and all that, you connect to other computers through sockets and using an IP address to connect, right? Well, when I figure out my internet IP (I have cable, so my IP rarely changes...if it all) via http://www.whatismyip.com/ or some other site like that, that gives me my ip all fine and dandy.....but how do I make a winsock program that I can put on a friend's computer that could connect to my computer through my router and everything?

    42

  2. #2
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    I have a home network and with winsock and all that, you connect to other computers through sockets and using an IP address to connect, right? Well, when I figure out my internet IP (I have cable, so my IP rarely changes...if it all) via http://www.whatismyip.com/ or some other site like that, that gives me my ip all fine and dandy.....but how do I make a winsock program that I can put on a friend's computer that could connect to my computer through my router and everything?
    you dont need to worry about your router unless it is interfering with ports... otherwise just use the standard operation of sockets that you have read about.
    there used to be something here, but not anymore

  3. #3
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94
    He's doesn't have a router, he actually has a router/nat box if he has cable. Therefore, packets need to be forwarded. Go need to go to your "router"'s configuration, and forward port whatever to your internal ip (probably like 192.168.1.100)
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

  4. #4
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    this is great...i don't know the login info for my damn router....i'll have to make a bruteforce hacking program now, great, this could take a while

  5. #5
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    ahahahahha

    that was easier to figure out then i thought it would be....

  6. #6
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94
    lol, you could've just downloaded Brutus.
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

  7. #7
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    k, well, i got my P2P program working now. I spent 2 hours on it and am happy with the results. I can connect to myself both by 127.0.0.1 and also my web IP address. However, when I gave the client program to a friend to connect to my server, it can't find the server for some reason, any reason why it might do this? defeats the purpose of my p2p program if people have to set up their routers just to connect to my server....seems kinda stupid

  8. #8
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94
    by default, routers like your allow outbound connections, just not inbound. So if, on yours, you forward the port, other people won't have any problem getting on.
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Web Server in Router Network...
    By Aidman in forum Tech Board
    Replies: 15
    Last Post: 01-17-2003, 10:24 PM
  2. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 02:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21