Results 1 to 7 of 7

Thread: WinSock Internet

  1. #1

    Thread Starter
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    WinSock Internet

    Well i need to make a chat program work on LAN which isn't a problem.

    However, I need to be able to log into the chat room off-site. The chat works by having one server and the clients connect to the server as needed. Then they can all chat.

    Well i figured i could set up port forwarding to allow me to connect remotely to my chat server, but I do not know the router information to log into it.

    Is there any way I can remotely connect to my server without setting up port forwarding through the router settings?

    Thanks,
    Philly0494

    PS: my chat program is written completely in vb6

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: WinSock Internet

    If the ports aren't open/forwarded on your router then, no. You will also need to ensure a firewall isn't running or blocking that port.

    What kind of router is it?

    Most router IPs are: http://192.168.1.1, and default login is something like: admin/admin, administrator/admin, etc.

    You can find your router's IP address by opening a command prompt and typing "ipconfig /all". Then look at the Default Gateway.

  3. #3
    New Member
    Join Date
    Apr 2008
    Location
    Lombard, IL
    Posts
    14

    Re: WinSock Internet

    If your server is a web server, port 80 should already be open.
    "There is always a way to do it better... find it!" T. Edison

  4. #4

    Thread Starter
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    Re: WinSock Internet

    well how do i make my winsock server a web server?

    is that how trojans do it?

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: WinSock Internet

    If the port isn't forwarded on the server machine, or DMZ option isn't enabled (opens all ports) then they will not be able to connect to the server, doesn't matter what port you use.

  6. #6
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: WinSock Internet

    Quote Originally Posted by Philly0494
    well how do i make my winsock server a web server?

    is that how trojans do it?
    Post 3 already told you.

    Just have your server Winsock listen on port 80. However, only one application at a time can use the same port number so if your server is on port 80 then your browser won't be able to go to the Internet

  7. #7
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: WinSock Internet

    Just to elaborate on JMS's comment. With TCP there are 2 Port numbers, the Local Port on the Server, and the Local Port on the client. TCP uses those two ports to identify the applications for communications. The Client connects to a Remote Port which is the Server's Local Port. The Server then uses the Clients Local Port as its Remote Port.

    So if the Server is listening on Port 80 the Client connects to Remote Port 80, TCP will automatically allocate the Local Port for the Client. So the Cliient is not actually using Local Port 80 and will still be able to access other servers listening on Port 80 (eg Web Servers)

    eg Once communications are established:

    Client: Local Port= 20134, Remote Port= 80
    Server: Local Port= 80, Remote Port= 20134

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