What Are Static IPs, Ports, DHCP, and MAC Addresses?

Click For Summary

Discussion Overview

The discussion revolves around the concepts of static IP addresses, ports, DHCP, and MAC addresses, with participants seeking clarification on these networking topics. The scope includes technical explanations and conceptual clarifications relevant to internet and server operations.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • Some participants explain that a static IP is an IP address that remains fixed, while a dynamic IP changes periodically, with the assignment method varying by operating system.
  • Ports are described as mechanisms to distinguish between different services, with specific examples like Port 80 for HTTP and Port 22 for SSH provided.
  • DHCP is characterized as a protocol that assigns dynamic IP addresses to devices on a network, allowing for automatic configuration.
  • MAC addresses are defined as unique identifiers for network interfaces, used for identifying devices on a local area network.
  • One participant discusses the advantages of having a static IP for hosting services, noting that dynamic IPs can change, potentially disrupting access to associated domain names.
  • Another participant elaborates on the role of ports in data transmission, emphasizing their importance in the decapsulation process and network security.
  • There is mention of the potential need for a business plan from an ISP to obtain a static IP, which may also include additional benefits like increased bandwidth.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and agreement on the definitions and implications of static IPs, ports, DHCP, and MAC addresses. Some points are clarified, but no consensus is reached on all aspects, particularly regarding the necessity of static IPs for different users.

Contextual Notes

Limitations include varying definitions of terms like MAC addresses depending on context, and the complexity of the DHCP process which may not be fully detailed in the discussion.

Who May Find This Useful

This discussion may be useful for individuals seeking foundational knowledge about networking concepts, particularly those new to internet and server management.

VietDao29
Homework Helper
Messages
1,424
Reaction score
3
I know it's embarrassing to ask this. But I don't know anything about the stuff about Internet, server,...
What's a static IP? How can I create a static IP?
What's a port? What's a port used for? How can I establish a port?
What's DHCP? What does it do? And what's MAC?
I tried to search for this, but I didn't quite understand it. The words they used are soooo confusing... :cry: Can you guys please help me...
Any help will be appreciated,
Thanks,
 
Computer science news on Phys.org
Static IP
DHCP
MAC - the definition changes depending on the context its used in.
Are you sure you searched properly:-p
 
1) A static IP is an IP address that stays fixed while a dynamic IP is an IP address that changes every so often.

A static IP is assigned differently depending on what operating system you using.

2) Ports are used distinguish between different services. Example: Port 80 - HTTP, Port 22 - SSH, Port 631 - IPP

You can open ports by using a library like sockets.h in c/c++

3) DHCP is used to assign computers a dynamic IP

MAC is a unique number given to an ethernet card. It is an easy way to identify you computer from the rest of the network.
 
Ports are the sockets that tells the upper layers how to service the data that is being streamed into the application layer.

port 21 means that the ftp application should service the data
port 23 means that the telnet application should service the data

When packets are being encapsulated, the layers below the transport layer (where ports are situated) don't really care, its when packets are being decapsulated ports are important.. You can also implement a bit of securty on the network using ports.

Mac addresses are Hexidecimal 'numbers' that are used for switching packets to there destination, and are an important part of the IP protocol suit, and are needed to find Network devices on a LAN.

DHCP is the Dynamic Host configuration protocol, so people who don't need to care about the inner workings of IP can have there IP addresses given to them automagically by a DHCP server. The DHCP server would be configured by your Network Admin
 
Last edited:
You'll want a static IP instead of a dynamic IP if you're running services on your computer that you'd like other people to access, such as a web server, ftp server, mail server...etc
The reason is not that you can't be reached if you have a dynamic IP, the reason is that your Internet Service Provider will change your IP every so often (i've had the same dynamic ip for a while now, +3 months i think, it has only changed once). So if you have a domain name www.mydomain.com[/url] which is associated with your IP, in the future if your ISP changes your dynamic IP, then [url]www.mydomain.com[/URL] will be associated with an incorrect IP so it won't direct visitors to your site. Of course you can easily realize this and change it, giving time for DNS to update it'll be fine within a day.
Unless you are a business or have some really big plans you probably won't need a static IP. Notice that, depending on your ISP, you have to pay more to get a static IP, they usually have a "Business Plan" or something which includes a static IP, but I've never checked to see how much more i'd have to pay (you'd also get more bandwidth and a better upstream with a business plan).
Notice that your ISP assigns you a dynamic IP using DHCP (this is all related). That's what DHCP does, it dynamically assigns IP addresses (making sure that no two computers have the same one). Usually you have either a traditional server (Win Server, Unix Server, ..) or just a simple router taking care of the DHCP. If you have a router at home, whenever you connect the computer to the router, the router, acting as DHCP server, dynamically assigns your computer some IP.
The alternative to DHCP, is for you to go to every computer in your network and manually assign an IP (static IP), making sure that no two IPs are the same. So DHCP is a lot better.

On to servers. What a server is is a piece of software running on some machine (any machine will do, but fast ones are better) that is listening in on a port. Ports aren't physical, they don't actually exist, a port is just a parameter varying from 0 to 65535 (give or take). A web server runs on port 80 for instance. So for example [PLAIN]www.yahoo.com[/url] has a web server listening on port 80 (they really have more than one server, but to simplify). When you point your browser to [url]www.yahoo.com[/URL], your browser does the following:
. gets the IP address that [url]www.yahoo.com[/url] is pointing to (with a DNS query)
. connects to that IP on port 80.
. talks to the server using the HTTP protocol.
. the server replies with an html document which is the webpage.
. the browser parses the html and displays the page

This is an over simplification, but it gives you the idea, of how ports are used. Mainly, the advantage is that i can have many servers running on a machine (Mail, Web, FTP) which listen on different ports, so you won't, for instance, connect [url]www.yahoo.com[/url] and instead of getting the web server, you get the mail server.

If you're a programmer, you use use a socket to create a connection to a port on some computer, in Java it's kind of simple, like new Socket(64.118.189.241, 80). That's my server's ip address, [PLAIN]http://www.bloo.us .
 
Last edited by a moderator:
Thanks guys very much. I understand it now... :smile:
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
14
Views
2K
Replies
3
Views
3K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K