Questions tagged [ip]

This tag is for questions related to the Internet Protocol. You may want to use the tag [ip-address] instead of or in conjunction with this tag. For questions about intellectual property, use [intellectual-property] instead.

The Internet Protocol is one of the fundamental protocols used for the Internet. There are two main versions: uses 32-bit addresses (often shown in dotted-decimal notation, e.g. 10.0.1.3) and uses 128-bit addresses. IP addresses have their own tag, , which is often seen with . Its companion protocol is the Transmission Control Protocol, , and the combination is often denoted TCP/IP.

This tag is also used infrequently to mean the C language structure related to IP addresses, the computational complexity class IP or instruction pointers. It should not be used to refer to intellectual property; that has its own tag, .

9300 questions
2
votes
0 answers

How to get WSL2 IP address from C# program?

I'm trying to get WSL'2 IP address, in windows and ifconfig it is displaying as 172.30.78.85. How can I get it from C# code? I tried this: public static string GetLocalIPAddress() { var addresses = Dns.GetHostAddresses(Dns.GetHostName()); …
FoxPro
  • 2,054
  • 4
  • 11
  • 34
2
votes
1 answer

Why we use the local IP address in identifying sockets?

When a server want to create a socket, it will use a combination of its IP address and some well-known port, let us say 80. So, when a packet arrived, both the server IP and port 80 will be used to decide whether the packet goes to that socket or…
2
votes
1 answer

route print command show almost all On-link gateway

Trying to learn about routing tables, when preforming route print on cmd window I get this result on the IPv4 table: =========================================================================== Active Routes: Network Destination Netmask …
Gal Birka
  • 581
  • 6
  • 16
2
votes
4 answers

Ip host script bash

In the first if we want the hostname to appear, which is the 5th field from a file. Then if the IP we give to the host command does not exist, then the command returns message 3 (NXDOMAIN). The script should recognize if the command was "not found".…
panos_lek
  • 21
  • 4
2
votes
1 answer

Hackthebox machine webpages not loading when entering IP address into search bar

I wanted to do the starting point machines on HackTheBox and ran into a problem. I tried connecting to the webpage of 10.10.10.28 and it just keeps on loading forever with the note, that its 'waiting for 10.10.10.28'. If i ping the IP address it…
Marvlogs
  • 119
  • 1
  • 7
2
votes
1 answer

How to hide my IP doing web scraping in python?

I am doing web scraping with python in some pages and I have been blocked from some of them. When I have tried to check it also through the TOR Browser I have seen that I cannot access to the pages neither, so I think that these pages have been able…
2
votes
9 answers

127.0.0.1 refused to connect after django manage.py runserver

I'm new to python and django. Yesterday I did the "python manage.py runserver" for the first time(just after django-admin startproject ..) and it showed starting development server at http://127.0.0.1:8000/. But in chrome it said "this site cant be…
macro
  • 31
  • 1
  • 1
  • 4
2
votes
4 answers

Get user ip with jquery

I want to get the user's IP address with jQuery or JavaScript, it doesn't really matter but I prefer jQuery. I've seen some answers here but they didn't work for me.
andrei
  • 8,252
  • 14
  • 51
  • 66
2
votes
1 answer

Java Jersey: Get client IP in rest method on Tomcat

I have a Jersey rest webservice that runs on tomcat 6. I have a @Post method that consumes Multipart: @Path("identify") @POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_XML) public String…
srd.pl
  • 571
  • 10
  • 22
2
votes
1 answer

IPv4 address dot in square brackets

I have been asked to block IP address of the form: 1.111.1[.]111 I have never come across a dot in square brackets in IPv4. Does it have any meaning or interpretation?
Infermath
  • 413
  • 5
  • 8
2
votes
1 answer

Magento - Product by country using IPaddress

I want to add a radio button with the following option Show product in > United States > International > Both Upon selection the product will show on the front end for the appropriate customers using IP detection I google it and i found one…
Vasanthan.R.P
  • 1,277
  • 1
  • 19
  • 46
2
votes
6 answers

Awk or sed to prepend missing zeros in mac addresses

I've got a file consisting of IPs and MAC address pairs and I need to pad the MAC addresses with zeros in each octet, but I don't want to change the IP. So this... 10.5.96.41 0:0:e:4c:b7:42 10.5.96.42 c4:f7:0:13:ef:32 10.5.96.43…
2
votes
1 answer

How to save connecting IP from cURL POST

I've got a LAMP stack where i've set up the following code in a php file: if (isset($_POST['name'], $_POST['age'])) { $db = new Mysqli("localhost", "test", "123", "postdata"); $name = $db->real_escape_string($_POST['name']); …
hanmic-6
  • 81
  • 5
2
votes
2 answers

Connecting to Mongo Docker container from Mongo Compass on local machine?

I have the following docker compose file that I use to spin up a mongo docker container which works as intended. However, I cannot seem to connect to the container from compass on my local machine. I executed docker inspect on my mongo container and…
java12399900
  • 1,485
  • 7
  • 26
  • 56
2
votes
1 answer

Capturing RDP Client IP in Credential Provider

We have a custom credential provider running on windows server 2012, which calls APIs of our authentication server before allowing the user to login. We are also maintaining logs of our credential provider. We now need to capture and log the IP…
js.hrt
  • 159
  • 2
  • 14