This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

About IP Addresses

 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a web server running on my machine whose port is open. However my machine has DHCP. I check my "external" IP from a service like whatismyip.com

Now if my friend tries to access the webserver on the "external" IP and somehow it does not get it.

Now my question is how do other programs like yahoo messanger work. When my friend sends me a message does he not send me a message on a specific IP and port?

Thanks
Rahul
 
Bartender
Posts: 9612
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably have to configure your router (or whatever you connect to the net with) to forward the traffic to your computer: portforward.com
 
Marshal
Posts: 24939
61
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rahul Mahindrakar wrote:Now my question is how do other programs like yahoo messanger work. When my friend sends me a message does he not send me a message on a specific IP and port?



Actually, no. Those programs do not run a server on your computer. When your friend "sends you a message" here's what happens:

  • The message goes to Yahoo's server
  • Yahoo's server puts it in a list of messages waiting for you
  • The messenger program on your computer sends out a request saying "Any messages for me?"
  • Yahoo's server sends the message back to the messenger program in response
  • The messenger program displays the message on your screen

  •  
    Rahul Mahindrakar
    Ranch Hand
    Posts: 1871
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi

    Opps I forgot that its a Client - Server architecture and it looks like Yahoo client is pooling for some messages.

    But this does not answer my moot question.

    If I have a IP and a server on DHCP why is it that an "outside" entity is not able to access the service.

    Thanks
     
    author
    Posts: 5856
    7
    Android Eclipse IDE Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    If I have a IP and a server on DHCP why is it that an "outside" entity is not able to access the service.


    a) What is your local network configuration:
    Do you have a router? If so, then Joe answered your question.
    Or are you directly connected to your ISP? If so, then does your ISP route traffic to your IP address, or does it block it?

    b) Is there a firewall somewhere (either in your network or the IPS's) that is preventing the access.

    c) What network debugging have you done (ping, tracert, etc) and what were the results of each of those?

    d) If you do an ifconfig, what is the first node number? Is it 192?
     
    The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
    Java file APIs (DOC, XLS, PDF, and many more)
    https://products.aspose.com/total/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!