from discovery import EndPoint, PingNode, PingServer my_endpoint = EndPoint(u'52.4.20.183', 30303, 30303) their_endpoint = EndPoint(u'13.93.211.84', 30303, 30303) server = PingServer(my_endpoint) listen_thread = server.udp_listen() listen_thread.start() server.ping(their_endpoint)
from discovery import EndPoint, PingNode, PingServer my_endpoint = EndPoint(u'52.4.20.183', 30303, 30303) their_endpoint = EndPoint(u'52.16.188.185', 30303, 30303) server = PingServer(my_endpoint) listen_thread = server.udp_listen() listen_thread.start() server.ping(their_endpoint)
# -*- coding: utf-8 -*- from discovery import EndPoint, PingNode, PingServer my_endpoint = EndPoint(u'192.168.1.192', 30303, 30303) their_endpoint = EndPoint(u'127.0.0.1', 30303, 30303) server = PingServer(my_endpoint) listen_thread = server.udp_listen() listen_thread.start() server.ping(their_endpoint)
from discovery import EndPoint, PingNode, PingServer my_endpoint = EndPoint(u'52.4.20.183', 30303, 30303) their_endpoint = EndPoint(u'127.0.0.1', 30303, 30303) server = PingServer(my_endpoint) listen_thread = server.udp_listen() listen_thread.start() server.ping(their_endpoint)
#!/usr/bin/env python3.6 if __name__ == '__main__': from ipgetter import myip from discovery import EndPoint, PingServer my_ip = myip() my_endpoint = EndPoint(my_ip, 30303, 30303) # ping to ethereum foundation go bootnode # see https://ocalog.com/post/18/ their_endpoint = EndPoint('52.16.188.185', 30303, 30303) server = PingServer(my_endpoint) listen_thread = server.udp_listen() listen_thread.start() server.ping(their_endpoint)