• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

About IP Addresses

 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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?
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic