ip

Connect postgreSQL+postGIS docker container from my local network

情到浓时终转凉″ 提交于 2019-12-25 00:45:09
问题 I have built a docker container from docker hub with : docker run --name some-postgis -e POSTGRES_PASSWORD=mysecretpassword -d mdillon/postgis docker run -it --link some-postgis:postgres --rm postgres \ sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres' An inspect : $ docker inspect b89c7f54e76a [ { "Id": "b89c7f54e76aa82bd142e1eb45a1f12008bf2ee2f94e392b08b386493b58891f", "Created": "2017-08-08T14:34:02.375576229Z", "Path": "docker-entrypoint.sh"

How to get the computer name from ip Address?

心不动则不痛 提交于 2019-12-24 23:20:48
问题 How to get the computer name from IP Address using php. Concept : How to restrict the user with using the system information.,i don't want the IP Address with that restriction.,because it doesn't use for me.,the IP Address are not static everyday it'll changed so i want a system name or something system related.,my basic idea is i want to restrict the user with the access of only one system.,not some other.,(1 user - 1 system) with his/her login details...so this is the concept for my project

Socket C# - Local Ip works, but Internet IP do not work

五迷三道 提交于 2019-12-24 22:09:24
问题 Guys, i implemented a Socket with Client and Server side. When I use my local IP (192.168...) it works. But when I put the Internet IP, it doesn't work! What's the main causes for that please? Thank you 回答1: You have a firewall or NAT device between you and the internet. You should forward your port in your router. 来源: https://stackoverflow.com/questions/3121871/socket-c-sharp-local-ip-works-but-internet-ip-do-not-work

How to let facebook read a url that is IP restricted

我的梦境 提交于 2019-12-24 21:09:53
问题 I have a site that has two versions, for one country A and for all of the rest, and is restricted by IP, The thing is that from country A, if they share a URL in facebook (for example); when facebook tries to scan for title, description and image it fails (as actually should), Is there a way to detect that is facebook/twitter/google IP and let them read it? (i understand that if the link is clicked outside country A or facebook it will fail) 回答1: There's some info on the individual websites:

Is my IP in my database, if so find timestamp

牧云@^-^@ 提交于 2019-12-24 19:38:00
问题 OK, so I want to know this: Is my IP in my database? If yes, find the timestamp of entry. So far I have this: $ip = $_SERVER['REMOTE_ADDR']; $myip = mysql_query("SELECT * FROM votes WHERE ip = '$ip'"); If(mysql_num_rows($myip) > 0){ //find timestamp and name it as a variable e.g $ipTime Thats as far as I've got, and for the life of me, I'm a little stuck, anyone help me? 回答1: This should do the trick, it should get the timestamp and convert it to a human readable format, you may also want to

Find all IPs in a subnet

廉价感情. 提交于 2019-12-24 19:33:46
问题 I am developing a part of code using C++ for our project, my code must return a list of all available IPs in a subnet, so I have this scenario: Get my subnet. Test every IP in subnet using a for loop, e.g.: for (int i = 0; i < 254; i++) { testip(X, X, X, i); /* if IP is valid */ vectoriplist.push_back(X, X, X, i); } For find subnet I think I will use IPnetwork utility, but I still have another problem and it's how I can test if the IP is valid on the subnet. I try to use boost.asio , but I

How to detect OS version of a web server

核能气质少年 提交于 2019-12-24 17:33:04
问题 Is there a way to detect the Operating System version of a web server using its IP address (with knowledge that the web server is running php). I haven't attempted to code it yet, as i am a beginner. Is it easy? Is it possible or not possible at all? 回答1: There's no official way to detect OS on a remote server across all operating systems and configurations. It's often considered a security risk to expose such information, since it can be used to research directed attacks based on the version

How to detect OS version of a web server

我怕爱的太早我们不能终老 提交于 2019-12-24 17:32:51
问题 Is there a way to detect the Operating System version of a web server using its IP address (with knowledge that the web server is running php). I haven't attempted to code it yet, as i am a beginner. Is it easy? Is it possible or not possible at all? 回答1: There's no official way to detect OS on a remote server across all operating systems and configurations. It's often considered a security risk to expose such information, since it can be used to research directed attacks based on the version

IPv6 support for Azure

匆匆过客 提交于 2019-12-24 17:15:51
问题 My hosting provider supports IPv6 for quite some time now. I am looking in to the possibility to migrate to Azure, but would like to know if IPv6 is supported on Azure. Is there any documentation available? 回答1: To quote the Azure faq: Microsoft has played a leading role in helping customers to smoothly transition from IPv4 to IPv6 for the past several years. To date, Microsoft has built IPv6 support into many of its products and solutions like Windows 8 and Windows Server 2012 R2. Microsoft

Getting TTL of incoming UDP packet in Python

安稳与你 提交于 2019-12-24 17:15:20
问题 I'm using the socket module in Python to do some basic UDP client-server communication. What I would need to do is quite simple: client sends server a packet, server answers with client's public ip address, port and a number representing the TTL the UDP packet had when it got to the server. This is my main problem: is there any way to recieve a packet with recvfrom() or so, and read the TTL value it had when it reached my server? Thank you very much! Matteo Monti 回答1: I think you want to