ip 1 « ip « Java Network Q&A

Java Network Q&A
Java Network Q&A » ip » ip 1 

1. How can I determine the IP of my router/gateway in Java?    stackoverflow.com

How can I determine the IP of my router/gateway in Java? I can get my IP easily enough. I can get my internet IP using a service on a website. But ...

2. Java control IP TTL?    stackoverflow.com

In Java, is there a way to control the TTL of the IP header for packets sent on a socket?

3. Using Clients IP as the Servers IP    stackoverflow.com

This might be one of those "huh, why?" questions, but I figured it would be worth the try. How would one, from a server-side application, use the clients IP address as the ...

4. Authentication based on Certificates and IP    stackoverflow.com

Is there a way for a java web app to get information on the security certificates installed on one's machine via a http request and selectively grant access if a particular ...

5. How to get client IP from java server through xinetd?    stackoverflow.com

I am running a small java server through xinetd superserver. I'd like to get the originating client IP but I can't because streams are between xinetd and java (stin/stdout). Does somebody know how ...

6. Scraping with multiple IP, in java    stackoverflow.com

Well basically I have a scraping application. It scrapes around n items per minute. currently i have only one IP. The site i'm scraping allows me 3 connections per IP. I'm thinking about getting another ...

7. Java - specify the IP to run from    stackoverflow.com

I have a server with 2 IPs (example: and and a Java process that I want to run. The servers default IP is what it runs from if I ...

8. What type of variable in Java can hold an IP address-like number with multiple decimals?    stackoverflow.com

This is probably the simplest question ever asked, but if I have a running number like 23.928.4934.30, which variable should house that?

9. IP Hook through java    stackoverflow.com

Hey guy's I'm an intermediate programmer looking to learn more. I'm trying to figure out the basic idea about IP Hooking. I'm trying to make a program similar to what the ...

10. Datagram coming from the "wrong" IP    stackoverflow.com

I have a Linux box with a virtual IP set up. Here's part of the output from ip addr:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000

11. Calculate whether an ip is in a specified range in java    stackoverflow.com

Is there any libraries out there that can help with calculation if ip ranges? I want to be able to return true/false depending on an ip being in range of two other ...

12. Setting Response IP With JacORB    stackoverflow.com

I have a CORBA event client in Java that uses JacORB, but does not receive any events. I am able to narrow and make other remote calls, but when I'm ...

13. Need to get ip informat    stackoverflow.com

I am using the PrintService class to get the details of the currently attached printer now I have a requirement to get the IP of the attached printer. I am able ...

14. how to assign public ip using JAVAME?    stackoverflow.com

i am developing a JavaME application which dynamically assign public ip address given by the server? how to assign public ip to mobile phone using JAVAME?

15. java string detection of ip    stackoverflow.com

Assume a java string that contains an IP (v4 or v6) or a hostname.
What is the best way to detect among these cases?
I am not interested so much on whether the ...

16. How to make the JVM use a given source IP by default?    stackoverflow.com

Is there any way to force the JVM to use a specific source IP address when using the default, built-in java.xml.SOAPConnectionFactory? It appears the default ends up creating HttpSOAPConnection objects (sun ...

17. How can I tell java to use a specific outgoing ip interface for a http request?    stackoverflow.com

Does anybody know a quick way to force an outgoing http request to go through a specific (logical) ip address, in java? I'm thinking of using Apache HTTP client (part of http ...

18. small ip scanner code in java    stackoverflow.com

I'm writing a small game in java. There's a server and a client module. At the moment every client has to enter the server IP (in a local network) manually. Thats ...

19. Pinging computers on a network    stackoverflow.com

I am a researcher at University and I'm trying my hand at a bit of amateur java2 programming. I've been working through the KnockKnockServer/Client Java2 tutorial to send strings from one program ...

20. wireless toolkit emulator is able to access ip which is located outside the region?    stackoverflow.com

i have this static ip which is accessible on internet explorer(outside region)... but not accessible on wireless toolkit emulator(outside region)... but ip is accessible on emulator and internet explorer where ip ...

21. how to ping an ip with a given socket and send data through java?    stackoverflow.com

How can I code a java program to ping an ip address with a corresponding socket and send a data to that ip using java program!? Any suggestions!?!

22. Wowza: Get client IP from IHTTPStreamerSession    stackoverflow.com

When I'm print out client IP from resolvePlayAlias method the IP is null. Any ideas how to get the correct IP from IHTTPStreamerSession? It works for RTPSession with method rtpSession.getIp().

public class ...

23. Finding device IP J2ME    stackoverflow.com

I am trying to connect 2 devices together using a datagram connection but so far it only works over localhost so I need to find the IP of the device to ...

24. java, how to write a code for this situation?    stackoverflow.com

I am writing a XML gui editor using java, which edits the xml file and there are programs which would read that xml file and act according the changes immediately. For ...

25. Problem with printer in java    stackoverflow.com

I have a problem, what happens is I want to send to print a file at a printer, for which I get the IP address of the printers I have networked ...

26. How to Spoof ip in java    stackoverflow.com

How to change tcp information in layer 3 in java ?(ip spoofing) how to change layer 2 information ? is there any good library for it in java ? it ...

27. Print given ip printer    stackoverflow.com

I want to print a pdf file, given the printer's IP address, the IP address is stored in a table in the database, I read the ip address of that table ...

28. SLP Java function causing SocketException due to IP_MULTICAST_IF    stackoverflow.com

I'm attempting to use Java to find a SLP service named test, that is running on my network and create a connection to it. I know the service is running and ...

29. Grouping access logs by IP and time gap    stackoverflow.com

I’m working with tomcat’s access log files. I would like to create user trials out of the logs. Until now I grouped the logs by IP. But now I would like ...

30. How to get System IP using Java?    stackoverflow.com

I was trying to make a jFrame which had a button & a text-area/label, the motive being able to retrieve my systems IP Address, the problem is, when I use this ...

31. Apache Mina: how to get the IP from a connected client    stackoverflow.com

Can anyone tell me how the get the IP address from a connected client? So far I've found

and returns something like
is this ok? Can I do something that can ...

32. Finding the multicast IP that a datagram was sent to    stackoverflow.com

In my application I have one MulticastSocket that joins 40 multicast IP addresses (On the same port). When receiving a datagram, is there a way to find the specific Multicast IP that ...

33. Find out IP of all active machines on network    stackoverflow.com

How can I find out the IPs of all the currently active machines on my LAN? How can I write a general program which will work on any subnet? I'm doing this ...

34. how to set the system ip in the jvm argument?    stackoverflow.com

I want to set the system ip for one of the jvm arguments when i launch my application. please need info on how to do that. I need to set the ...

35. IP of a Socket, when program runs in VMWare    stackoverflow.com

I wanna test my program with VMWare. So I've run the program in a VMWare. Using ipconfig command on that machine gives me some IP like 192.168.XXX.XXX. It has a server ...

36. Detecting a Mobile Phone using Mobile IP    stackoverflow.com

I want to to get access to a mobile phone using Mobile IP over the (secured) network by it i mean No Hacking is meant.If a mobile IP registered on server ...

37. multicasting in different networks in java    stackoverflow.com

I'm writing a code to work through sockets in java. I've created a multicast group to which anybody can join on the LAN. But the LAN has many different networks, operated ...

38. Obtain IP Direction using JAVA    stackoverflow.com

Possible Duplicate:
Getting the 'external' IP address in Java
i'm using JAVA for a write a simple messenger, but i need know the IP address of ...

39. Java : Reuse Bound Socket with different IP?    stackoverflow.com

I want to do something like that :

public void  myFun (String  tIps [])
    Socket  s = new Socket ();
    s.connect (new InetSocketAddress ...

40. XMLRPC IP.Board could not locate an API module called    stackoverflow.com

I have a case: make work with forum by API fo Forum Engine IP.Board. So i wrote next code:

package ru.test;

import java.net.MalformedURLException;
import java.net.URL;

import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

public class mainClass {


41. Reconnection(renew IP) via Java    stackoverflow.com

I'm developing an application in Java that access a website which limits the amount of data to be retrieved per hour. Because of that, I want to renew my IP address ...

42. Discover IP Based Devices in Network with Java    stackoverflow.com

I need to gather the device list within my network(ip infos). Is there an api or some kind of method in java to do this? Thanks in advance.

43. Determining Servers IP    coderanch.com

I'm using Linux and in my server procedure I want to dtermine the IP address so I can bind my Objects accordingly. I have been using the follwoing methods in the server: InetAddress.getLocalHost().getHostAddress()); InetAddress.getLocalHost().getHostName()); byte[] test1 = InetAddress.getLocalHost().getAddress(); In windows these work just fine and return the proper IP, but in Linux I get an IP of I can't seem ...

44. IP, SSL, and Java    coderanch.com

Does anyone know if there is any way to identify an intranet user by identifying their IP address. We have a web server running in a demilitarized zone that forwards requests to an application server. Intranet users access the application server directly. We would like consolidate these machines but we need a way of identifying internet users so that their information ...

45. how does IP addressin on the net takes place    coderanch.com

dear sir, we say that when we are on the net every machine has a unique ip address but how does this treffic is controlled b'coz any time the total number of user mat exceed but when we connect to any site for say yahoo we mention its ip add only ex( and also total number does not exceed a ...

46. Internet & IP Adressing    coderanch.com

47. URL to IP    coderanch.com

48. Voice Over IP    coderanch.com

49. Easy way to verify an IP #?    coderanch.com

Is there an easy way to verify that an IP number the user entered is valid in form? I mean, I know that you can parse the string and check for 3 periods and that there aren't more than 3 numbers between periods, but I was wondering if there was a simpler way. I tried using InetAddress.getByName(String), but getByName will actually ...

50. creating ip packetsin java    coderanch.com

Just an additional note. Using the JDK facilities you won't be able to create an IP packet directly. The JDK operates at a much higher level and allows you to get an output stream and write to it, from which IP packets are created, but they're out of your direct reach. Best of luck! -Joel

51. IP Lookup    coderanch.com

52. IP Spoofing and Java    coderanch.com

53. Is IP Spoofing possible?    coderanch.com

Originally posted by Karthik Veeramani: I'd like to test an application by sending some datagrams to a server. The datagrams should seem to appear from different machine ips. Is it possible to send a spoofed message in Java? I've seen people doing this using unix version of C, but I need to do it in Java.

54. Sockets and ip    coderanch.com

55. how to get client ip from socket    coderanch.com

hi, i've been trying to find out how to get the clients ip all day long now. i hope someone can help me here. i have a serverSocket running on my server. in a while loop i have a socket=serverSocket.accept() waiting for clients to connect. how can i find out the clients ip? shouldn't it be in the socket? i've tried ...

56. ip scanning    coderanch.com

57. bad ip adresse    coderanch.com

58. How to send Image over IP Socket?    coderanch.com

59. how to change ToS value of IP layer    coderanch.com

Hello Experts, I was trying out a java networking application and was wondering, is there a way in java where I can change the value of TOS field of IP layer when Iam sending some UDP packets from my application. Though Java Doc mentions this field as unused. This is getting more popular now as DSCP and modifying this is becoming ...

61. IP Call Recording    coderanch.com

62. how to know client ip    coderanch.com

63. network ip's scanning    coderanch.com

Hmmmm... I'm not sure that I get the point of this question... and not sure that this question belongs in "Distributed Java"... First, why would you need to find "available" IP addresses on the network? In most cases, all a computer needs is simply *an* available IP address, and usually this is handled by calling a router using DHCP to assign ...

64. network ip's scannnig    coderanch.com

I guess that's not possible. Of course you may iterate over all possible IPs, and ping them, but often firewalls drop icmp-echo-requests. No answer isn't guaranteed to mean 'IP unused'. If your network is the internet (it often is, isn't it?), and you would try to get every IP - what a fun for young people hanging around... Why do you ...

65. ip or name of server    coderanch.com

66. IP Call Recording    coderanch.com

67. IP Conflict    coderanch.com

Hi, I have one unique problem. I hv developed one page(HTML) in my server from which i am calling one page(HTML) in my client server, which is at remote location.(ie the request will be entertained only if it comes from my server IP Address). I have given my server IP Address to my client and accordingly any request going from my ...

68. IP of the Client    coderanch.com

This question gets asked over and over again. You can search this forum for some of the detailed explanations, but in short, the IP address isn't reliable for identification puposes. Not only can it be spoofed, but it's often translated in the course of ordinary network operations. Plus there's DHCP. MAC addresses probably would require a JNI glue class, but they're ...

69. dynamic/static ip    coderanch.com

70. Help to create IP filter    coderanch.com

Hi all. I have developed a small web forum and I want now to develope an IP blocking filter (like JR's IP filter and other...) to prevent a specifc user from posting. but I need some help and tips. 1. getRemoteAddress( ) method returns the (IP) address of the client or last proxy that sent the request. Ok, if this user ...

72. IP based authentication    coderanch.com

Hello Vipsha Sharma: Have you thought anything in this direction ? Do let us know so that we can add to that. Here is what I think about it.This concept might be possible of clients having static IP's , but what about other web clients connected to internet using dynamic IP's.One more petential problem which designing is that HTTPServletRequest can give ...

73. getting the actual client IP    coderanch.com

75. How can I format the input of ip?    coderanch.com

Hi, I am trying to format the ip input in my GUI in such a way that the user only need to input the number but not the dots. For example, my textfield will display something like . . . . , which can not be removed, and the user can simply input the number. I tried to search the java ...

76. Java code to retrieve response from IP mentioned../    coderanch.com

Dear Members, I have to get the reponse of the machine using the IP address specified. For example: by using 'ping ' we can retrieve the response of the particular machine's reponse if it is up or if it is shut down. I need some java code to retrieve this response. As it should return '1' for machine is up ...

77. Ip Phone discovery    coderanch.com

78. Using IP or Some Other Variable to Prevent Fraud    coderanch.com

Hi, I'm not sure that I'm in the right forum for this. I'll describe my problem and if the moderator moves me, so be it. We released a monetization platform that is doing very well and getting a lot of adoption. It allows users to complete surveys or sign up for products on game sites and at game news portals. You ...

79. How to read ip.dsfield in JPCAP.    coderanch.com

80. how can i get client IP?    coderanch.com

Thanks all you guys for replying and for NIV actually i store ip address of client when he login into my system and i made a report which gives information to user of Ip address and login time for each and every login made in system But right now it is showing same ip for all records.

81. wanted IP scanner program    coderanch.com

82. IP C-Class    coderanch.com

83. Get Ip Range    coderanch.com

Hi, I want to Find the computer ip between the two or more than give ip and that ip is given by the user and then in between ip find how many computer and that computer ip... Like Example.... First Ip : Second Ip : I want to result like in,3,4............. and also give ip like this.. First ...

84. get IP, but not    coderanch.com

String result = null; Enumeration interfaces = null; try { interfaces = NetworkInterface.getNetworkInterfaces(); } catch (SocketException e) { // handle error } if (interfaces != null) { while (interfaces.hasMoreElements() && Util.isEmpty(result)) { NetworkInterface i = interfaces.nextElement(); Enumeration addresses = i.getInetAddresses(); while (addresses.hasMoreElements() && (result == null || result.isEmpty())) { InetAddress address = addresses.nextElement(); if (!address.isLoopbackAddress() && address.isSiteLocalAddress()) { result = address.getHostAddress(); ...

85. Callback calls instead of real client IP    coderanch.com

Hi all, I'd like to ask a question.. it may sound easy but I'm stuck with it. I have successfully implemented a callback architecture in my program, but it works only if the server and client programs are on the same machine. If I load the client on another machine the client can call any rmi method on the server, but ...

87. CIDR to IP range    coderanch.com

88. java and IP    coderanch.com

90. Blocking IP addresseses    coderanch.com

I am building an Applet chat client. I have previously made this in an application. If a user got blocked (a mod could type special things in to kick them), they wouldn't be able to get on because of a file hidden in a location on the computer (in the applicatoin). I have an idea about how a mod could kick ...

91. how to change current IP to new IP    coderanch.com

92. how to know that a particular ip is being accessed.    coderanch.com

To listen for SSH requests without creating a server socket on the SSH port (which you can't because there's already the SSH server running on it), you will probably need to interact with the network interface on a low level. Pure Java can't do that, so you'll either have to use JNI to write something yourself or use a third party ...

93. Sniffing IP# On Java Based Chats    go4expert.com

94. Java IP Discovery Protocol    forums.oracle.com

Does anyone have any walkthrough's for creating your own IP discovery protocol. Basically to write my own ARP protocol. I would like to send a MAC address broadcast to the nodes in the local subnet and read through the responses they give me which contain their IP address. (Preferably without any requirement for special software on the listeners end).

95. Listen only Ip    forums.oracle.com

96. IP adressies -Please help !    forums.oracle.com

Output : 1. The IP address : binary and decimal 2. the web mask : binary and decimal and the number of the Bits 3. Network address: binary and decimal 4. Broadcast address : binary and decimal 5. The smallest host address: binary and decimal 6. The biggest host address: binary and decimal Examples to test the programm: and ...

97. detect IP format?    forums.oracle.com

98. IP and countries    forums.oracle.com

99. Getting IP information    forums.oracle.com

100. How to get all IP's and online computers in a network    forums.oracle.com

Hello everyone! Anyway, I hope someone can help me... I am a newbie in Java and is very much interested to learn. Well, I want to create a program in Java that will allow me to get all the IP address in a certain network and then only display those that are currently active or in use. Can someone advice me ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.