LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2014, 01:23 AM   #1
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Rep: Reputation: 7
Question Ubuntu Server using same IPV4 as my computer?


I think the picture below pretty much explains all of my concern. The page in the picture is of ipchicken.com on my own computer. Below that is a SSH window to the Linux server inside of my house, that has the same IP as my computer. What the heck is happening and will this affect any sort of servers on the Linux box?

The Linux server is connected to the router via Ethernet and my PC is connected via a wireless adapter.

Ubuntu 12.04.4 LTS
64bit

http://puu.sh/6FLEB.png

Last edited by TRUNoise; 02-01-2014 at 01:28 AM.
 
Old 02-01-2014, 01:41 AM   #2
everest40
Member
 
Registered: Jul 2008
Distribution: Ubuntu $LATESTVERSION
Posts: 168

Rep: Reputation: 67
This is happening because both computers, PC and server, are connected to a router which is doing network address translation.

Quote:
"Network Address Translation (NAT) is a network protocol used in IPv4 networks that allows multiple devices to connect to a public network using the same public IPv4 address. NAT was originally designed in an attempt to help conserve IPv4 addresses." (Wikipedia)
This can make it difficult for servers to accept connections from the outside world. If you want your server to be accessible from outside your local network, I suggest you look up how to do 'port forwarding' on your router.
 
Old 02-01-2014, 01:43 AM   #3
TRUNoise
Member
 
Registered: Apr 2013
Location: /home/
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by everest40 View Post
This is happening because both computers, PC and server, are connected to a router which is doing network address translation.



This can make it difficult for servers to accept connections from the outside world. If you want your server to be accessible from outside your local network, I suggest you look up how to do 'port forwarding' on your router.
The server itself is port forwarded.

Main PC: Not forwarded
Server: Forwarded

In technicality will the packets still only be sent to the server since it only has the ports forwarded and will connections sometimes be tried and sent to my own PC? Also, is there a way to turn NAT off? I'm on a NETGEAR WNDR3400v
 
Old 02-01-2014, 04:39 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Your router will send packets sent to your public IP address to your server for those ports which it is configured to do so. You could even have a configuration where some ports are forwarded to your server and others to other machines on your network. Your router takes care of all of this for you.

Whether you can turn this off depends on what kind of Internet service that you have. In general, having multiple publicly-routable IPs requires a miore expensive business Internet service/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
In tspc ipv6 tunnelling, does tunnel broker required for ipv4 to ipv4 communication? nyk.mat Linux - Newbie 2 08-13-2013 10:48 PM
Ubuntu Server 12.04.2 LTS Networking Issues with Multiple IPV4 Addresses westzilla Linux - Server 1 06-23-2013 07:02 AM
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0 (CentOS 5.5) troiwulful Red Hat 3 11-22-2010 12:04 PM
Ubuntu 8.04 Hardy and SSHD IPV4 metallica1973 Ubuntu 2 12-16-2008 05:55 PM
Ubuntu newbie question - desktop + server on the same computer? diskoe Ubuntu 7 09-28-2008 06:08 PM


All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration