I found my public ip by googling what is my ip which is a google provided service(The IP is shown above the search results). I tried to ping that public IP from another computer that is connected to internet. These two computers connected to internet via two dongles. That is via two local ISPs. What could be the reason for can't ping public ip from another machine? searching google wasn't help.
UPDATE
after issuing ifconfig command I found below address starting from 10(I hide it for security reason with stars).
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 10.***.**.** --> 10.64.64.64 netmask 0xff000000
when I ping this address from another computer on internet it says Destination host unreachable.
need to find why I got this message
UPDATE 2 (added by barlop)
It seems he has no router.
I don't know much about 3G dongles, but from comments, it looks like the OP has
E156G, HSDPA USB stick
He has two computers, each with one of those.
Here is the info that ipconfig shows when one of these dongles is plugged in.
Windows IP Configuration
Host Name . . . . . . . . . . . . : Thakshi
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
PPP adapter Mobitel:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Mobitel
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.224.54.236(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0
DNS Servers . . . . . . . . . . . : 172.19.70.210
172.19.70.211
NetBIOS over Tcpip. . . . . . . . : Disabled
Mobile Broadband adapter Mobile broadband 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : HUAWEI Mobile Connect - Network Card #3
Physical Address. . . . . . . . . : 58-2C-80-13-92-63
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : DC-85-DE-F5-9A-08
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Local Area Connection* 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : 1E-85-DE-F5-9A-09
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Wi-Fi:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Qualcomm Atheros AR956x Wireless Network
Adapter
Physical Address. . . . . . . . . : DC-85-DE-F5-9A-09
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 1C-B7-2C-32-4A-24
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:2c86:35f0:f51f:c913(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::2c86:35f0:f51f:c913%18(Preferred)
Default Gateway . . . . . . . . . : ::
DHCPv6 IAID . . . . . . . . . . . : 620756992
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-56-9C-EC-1C-B7-2C-32-4A-24
NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter isatap.{8B737949-1FAF-41C5-BDD0-89FFA7B46483}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
So his computer's IP is here IPv4 Address . . : 10.224.54.236(Preferred)
And private.
The IP for under gateway lists as 0.0.0.0 in ipconfig /all
which I suppose confirms that he isn't using one.
And whatismyip shows him a public IP 69.X.Y.Z
A public IP he is unable to ping