Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i connect to the internet using my router, the ipv4 address is x.y.z.a,where as,when i use sites like whatismyip to verify my ip,they show a different ip!..I know there must be some configuration issues with the router settings,But if i make somehow the ip address Static(which i see from those sites),Could it be possible to accomplish connections with other computers using that ip? What's the benifit of using static ip?
Posted

If you speak of a router you probably mean a SOHO router like linksys or tplink and so on. They are not just routers, they also share your single wan ip between devices on your network. To do this, they use so-called NAT[^] and probably DHCP[^] also. These to are not strictly related. There is on side-effect: the inside IP addresses are not visible to the outer world, every site you are visiting is seeing the single WAN IP you got from your provider - that is what you can see with whatsmyip and other similar sites.
A static IP means, that you don't get your IP address from a DHCP server. Your WAN IP and your local IP can be bot static or dynamic, they are not related howsoever.
If you don't use the router you will connect with the WAN IP, but you can't share the connection.
There is one option to have both - but only if the provider and the router is supporting it: pppoe pass-through.
If you got as many WAN IP addresses as many devices you have you don't need the NAT functionality and you can use a regular router instead (or you can switch of NAT, if this option is supported), but than you will need to set WAN IP addresses on the local devices or use WAN side DHCP.
 
Share this answer
 
Comments
sash_kp 15-Jun-13 8:45am    
@Zoltan Zorgo : I have developed a java program which has a server and a client program. The client program is needed to be run by my friend who is is a different city where as i would run the server program. This program works as long as i put the ip information as the internal ip address,in the client program.(inside the home network only) What i want is to have a single IP which can be used by the client program,anywhere over internet to run the client program.Without using servers isn't it possible? If no,then does free server providers like www.serversfree.com allow these facilities?
Using the port forwarding concept i solved the issue! Thanks @Zoltán Zörgő
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900