Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:46:35+00:00 2026-06-11T13:46:35+00:00

today i built a UDP based chatting software which uses a UDP listener and

  • 0

today i built a UDP based chatting software which uses a UDP listener and server to form the chat app.

When i gave it to my friend to test, he, he had to port forward so that my messages can reach him through is router and so did I.

i am curious, that how does IM client like msn messenger and skype work. like how do they receive messages without having to port forward?

thanks,
Vidhu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:46:36+00:00Added an answer on June 11, 2026 at 1:46 pm

    The MSN, etc. clients connect to a third party remote server that technically also has port forwarding/routing but it’s exposed to the public via a static IP address. You download a client application like MSN and it connects to a remote server, but the client does not act as a server itself, thus not requiring port forwarding. It most likely consumes messages and blocks until more come in, so the server doesn’t need to have access to it via IP address to send messages to it.

    In your case, since you are hosting the remote server on a private network, you need to route traffic to that IP address to the proper internal device that is connecting to it, just like if you hosted anything else like a website on one of your computers.

    With your friend also having to port forward to get the application to work, it seems that their client is also acting as a server and does not maintain a connection/socket with your server. If the client were to maintain a socket with the server, only you would have to port forward and your friend would not because their client would just listen for requests and block until they come in, and send requests to your server.


    You might want to look into a real message bus like RabbitMQ and you could host this message bus and then build your client to subscribe to it and send/receive messages. Another option would be Redis and you could use the POP functionality to remove “read” messages that are retrieved from the queue by a client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I built and administer large web application which uses the PHPMailer library to send
I've upgraded XCode 4.5 today and built my project. A compile-error shows: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMix.h:15:9: 'MediaToolbox/MTAudioProcessingTap.h'
We built an RTD Server assembly which has been in wide use for several
Today I experienced a weird problem while trying to remotely debug an application built
Today I had a discussion with a friend of mine and we debated for
I have built a Fiddle on JSFiddle which retrieves an OAuth access token via
Is There any built in function in c# to compare Compare today's datetime to
For fun I been playing with the built-in Optimizer for Oracle in Toad today.
This relates to another question I asked earlier today. I built SVN 1.6.2 from
I've built a timeline app, using the graph API to query the posts on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.