get the real last block I have this code:

from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
import logging
rpc_user='-------' #User name is hidden
rpc_password='-------' #Password hidden
logging.basicConfig()
logging.getLogger("BitcoinRPC").setLevel(logging.DEBUG)
rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user, rpc_password))
blockcount=rpc_connection.getblockcount()
print(blockcount)


The result:

DEBUG:BitcoinRPC:-1-&gt; getblockcount []
DEBUG:BitcoinRPC:&lt;-1- 94768
94768


Of course this is last block in my device, but I want the real last block.

Is there a "external server or a Web site" i can call instead of Local server '127.0.0.1'? (for sending the bitcoin RBC method)
Instead of getblockcount, you can call getblockchaininfo and read the headers field.

However, while this may give you a lot more blocks than the local block count, you will still only receive a count up to the point where your node has synced headers (which can be limited by time, network, how well synced your peers are)

There is no way to always get the latest block height reliably from an unsynced node.