Results 1 to 10 of 10

Thread: IMs connecting to the internet...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    IMs connecting to the internet...

    I know this is a very broad spectrum question...
    But how do programs such as MSN, AIM, YIM, Myspace, ICQ and all those actually connect to the internet?

    I never opened a port for them in my router but i do believe that they use the TCP protocol.

    Do they somehow configure my router through a uPNP or what ever it's called?

    The router's firewall should stop it shouldn't it?

    Also, what could i search for to find the code for this answer... or what is the code for this answer... this is a problem that i always have when making programs that communicate over the internet.

    In my router's Port Forwarding table, i noticed that there's a free UDP Port open, the port number is 161 and it's set to the broadcast address for the network that i'm on (which means it will allow any IP address on the network to recieve traffic through this port).

  2. #2
    Fanatic Member sessi4ml's Avatar
    Join Date
    Nov 2006
    Location
    Near San Francisco
    Posts
    958

    Re: IMs connecting to the internet...

    Normally the ports are open to all users ...from the inside
    and locked from the outside.
    Users can get out, but not in.
    Port forwarding is users entering from the outside and you want to direct them to a specific computer.
    Example, Public address (100.100.100.100) can point to 192.168.1.42
    This could be one port (port 80) or many or all.
    I am running http://www.wfshome.com/ on one of my many computers
    Did this help?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: IMs connecting to the internet...

    I used to use that program!

    Yes, that helped. Yeah, it's to allow external data to come in, that's what ports are for... but the problem is that when you recieve a message on say MSN, there has to be a port open for that. How does this happen?

  4. #4
    Fanatic Member sessi4ml's Avatar
    Join Date
    Nov 2006
    Location
    Near San Francisco
    Posts
    958

    Re: IMs connecting to the internet...

    To receive a message, a few ways. You received a pop-up via port 80, or there is a program running and it has a port open.
    https://www.grc.com/x/ne.dll?bh0bkyd2
    This will check all ports, or click on ... "Common Ports"
    If this answers your question, then close Thread, if not, I'm here.

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: IMs connecting to the internet...


  6. #6
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: IMs connecting to the internet...

    they dont have to port forward because your MSN/Yahoo/AIM client makes outgoing connections. Its as simple as that. You only port forward for incoming connections.
    Chris

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: IMs connecting to the internet...

    So even though the connection is made out going... Data can still come in?

    That means if i have a main server that accepts in comming connections that i can just make programs that make outgoing connections and they can recieve data off each other via this main server?

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: IMs connecting to the internet...

    Moved
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Fanatic Member sessi4ml's Avatar
    Join Date
    Nov 2006
    Location
    Near San Francisco
    Posts
    958

    Re: IMs connecting to the internet...

    So even though the connection is made out going... Data can still come in?

    That means if i have a main server that accepts in comming connections that i can just make programs that make outgoing connections and they can recieve data off each other via this main server?
    You are mixing ports opened for incomming data and ports opened for outgoing data.
    Don't ! !
    When you visit a web site, port 80 is open for out-going and returning ( this is how the packets of data are designed) Someone trying to gain access to your port 80...will not. And, the router might have these ports turned off...the server will not be able to access them...Did you try ...Check your Ports ?...my link

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: IMs connecting to the internet...

    Quote Originally Posted by Slyke
    So even though the connection is made out going... Data can still come in?
    The only thing a NAT device prevents is the initial incoming connection - that has nothing to do with incoming data. Data can flow both ways on any connection, regardless of which end made the connection.

    That means if i have a main server that accepts in comming connections that i can just make programs that make outgoing connections and they can recieve data off each other via this main server?
    That's how all the IM programs work. Every user makes an outgoing connection (for both outgoing and incoming data) to the server. If 'A' sends data to 'B', 'A's computer sends the data to the server, with 'B' marked as the recipient, and the server forwards the data to 'B's computer.

    You just have to develop a protocol. How are the users designated? (Names? Numbers? IP addresses?) How is the initial message formed? Start of message? Recipient? Sender? End of message? Is the server going to wait for the end of message mark before sending it to the recipient, send each packet as received, receive and send every character? Is the recipient going to send back an acknowledgement? All that sort of stuff.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

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