Python Forum
How do i listen to loopback address on my local computer, without a port
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i listen to loopback address on my local computer, without a port
#7
(May-27-2023, 07:32 AM)kaimsuudgui Wrote: Listening to the loopback address (127.0.0.1) on your local computer without specifying a port doesn't serve any practical purpose since network communication typically involves ports. However, if you want to test connectivity to the loopback address, you can use tools like ping or telnet to check if the loopback address is responding.

For example, you can open a terminal/command prompt and run the following command to ping the loopback address:

ping 127.0.0.1

This will send ICMP echo requests to the loopback address and wait for responses. If you receive responses, it means the loopback address is functioning correctly.


Thanks. I'm triggering a Python script from an ip address ping after I parse the packet header. That's why I needed this. problem now is, given the code above my Windows 10 is printing both source and destination address as source. Not sure if anyone could help me with this? I tried a similar ICMP script from black hat python chapter 3, still printing the wrong source address(printing the dest as source and dest as dest...)
Reply


Messages In This Thread
RE: How do i listen to loopback address on my local computer, without a port - by billykid999 - May-29-2023, 07:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Listen TCP and send data to websockets neoboby 3 3,027 Feb-13-2023, 09:47 PM
Last Post: Vadanane
  Your p“Timeout !!!!” when I enter a known good IP address when running port scanner James2000k 8 2,832 Aug-06-2022, 10:42 AM
Last Post: Larz60+
  error opening port from local to internet looney99 3 2,828 Oct-16-2020, 02:01 PM
Last Post: BeanieW
  UDP Listen without Bind() GaryFunk 3 8,499 Mar-29-2018, 02:28 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020